# HG changeset patch # User Paul Aurich # Date 1244759672 0 # Node ID ea9cbfcbfd1995b83ae4a1eeac68d2161bdfb96f # Parent e49739413d73fffafb7dcbd7d5fa1423f849cb87 --warnings diff -r e49739413d73 -r ea9cbfcbfd19 libpurple/protocols/jabber/message.c --- a/libpurple/protocols/jabber/message.c Thu Jun 11 22:33:33 2009 +0000 +++ b/libpurple/protocols/jabber/message.c Thu Jun 11 22:34:32 2009 +0000 @@ -1036,29 +1036,30 @@ xmlnode_insert_data(child, jm->thread_id, -1); } - if (jm->chat_state != JM_STATE_NONE) { - child = NULL; - switch(jm->chat_state) - { - case JM_STATE_ACTIVE: - child = xmlnode_new_child(message, "active"); - break; - case JM_STATE_COMPOSING: - child = xmlnode_new_child(message, "composing"); - break; - case JM_STATE_PAUSED: - child = xmlnode_new_child(message, "paused"); - break; - case JM_STATE_INACTIVE: - child = xmlnode_new_child(message, "inactive"); - break; - case JM_STATE_GONE: - child = xmlnode_new_child(message, "gone"); - break; - } - if(child) - xmlnode_set_namespace(child, "http://jabber.org/protocol/chatstates"); + child = NULL; + switch(jm->chat_state) + { + case JM_STATE_ACTIVE: + child = xmlnode_new_child(message, "active"); + break; + case JM_STATE_COMPOSING: + child = xmlnode_new_child(message, "composing"); + break; + case JM_STATE_PAUSED: + child = xmlnode_new_child(message, "paused"); + break; + case JM_STATE_INACTIVE: + child = xmlnode_new_child(message, "inactive"); + break; + case JM_STATE_GONE: + child = xmlnode_new_child(message, "gone"); + break; + case JM_STATE_NONE: + /* yep, nothing */ + break; } + if(child) + xmlnode_set_namespace(child, "http://jabber.org/protocol/chatstates"); if(jm->subject) { child = xmlnode_new_child(message, "subject");