~ubuntu-branches/ubuntu/oneiric/irssi-plugin-xmpp/oneiric

« back to all changes in this revision

Viewing changes to src/core/stanzas.c

  • Committer: Bazaar Package Importer
  • Author(s): David Ammouial
  • Date: 2010-07-06 15:14:51 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100706151451-tyil9o1evi8ydutr
Tags: 0.51+cvs20100627-1
* New upstream release + CVS snapshot (Closes: #588163).
  - Prompt for a password if none was provided in the configuration
    (Closes: #580659).
  - Don't segfault upon reception of a ping without "from" field.
    (Closes: #521227).
  - Various bugfixes and improvements.
* Provide a package with debugging symbols (Closes: #580658).
* Bump Standards-Version to 3.8.4 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: stanzas.c,v 1.4 2009/08/10 16:09:02 cdidier Exp $
 
2
 * $Id: stanzas.c,v 1.5 2010/05/14 14:15:06 cdidier Exp $
3
3
 *
4
4
 * Copyright (C) 2007 Colin DIDIER
5
5
 *
62
62
        g_free(raw);
63
63
        type = lm_message_get_sub_type(lmsg);
64
64
        id = lm_message_node_get_attribute(lmsg->node, "id");
 
65
        if (id == NULL)
 
66
                id = "";
65
67
        from = xmpp_recode_in(lm_message_node_get_attribute(lmsg->node, "from"));
 
68
        if (from == NULL)
 
69
                from = g_strdup("");
66
70
        to = xmpp_recode_in(lm_message_node_get_attribute(lmsg->node, "to"));
 
71
        if (to == NULL)
 
72
                to = g_strdup("");
67
73
        switch(lm_message_get_type(lmsg)) {
68
74
        case LM_MESSAGE_TYPE_MESSAGE:
69
75
                signal_emit("xmpp recv message", 6,