pidgin: e45bf01f: Allow fallback for broken XMPP <message/..
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Mon Jul 20 14:31:26 EDT 2009
-----------------------------------------------------------------
Revision: e45bf01fed589f33f1eccfd74cf7afec53af041a
Ancestor: 3f7a26ba800fc6ede3f1677db2c6bb5831342e70
Author: darkrain42 at pidgin.im
Date: 2009-07-20T18:26:13
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e45bf01fed589f33f1eccfd74cf7afec53af041a
Modified files:
libpurple/protocols/jabber/message.c
ChangeLog:
Allow fallback for broken XMPP <message/> types. Closes #7837.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/message.c 9054f935ff14b19eec518ec9f415bb07d93c77d1
+++ libpurple/protocols/jabber/message.c 73b07d5bec4a16baab9ed4db8a442bdd8f923485
@@ -790,6 +790,10 @@ void jabber_message_parse(JabberStream *
handle_buzz(jm);
switch(jm->type) {
+ case JABBER_MESSAGE_OTHER:
+ purple_debug(PURPLE_DEBUG_INFO, "jabber",
+ "Received message of unknown type: %s\n", type);
+ /* Fall-through is intentional */
case JABBER_MESSAGE_NORMAL:
case JABBER_MESSAGE_CHAT:
handle_chat(jm);
@@ -809,10 +813,6 @@ void jabber_message_parse(JabberStream *
case JABBER_MESSAGE_ERROR:
handle_error(jm);
break;
- case JABBER_MESSAGE_OTHER:
- purple_debug(PURPLE_DEBUG_INFO, "jabber",
- "Received message of unknown type: %s\n", type);
- break;
}
jabber_message_free(jm);
}
More information about the Commits
mailing list