changeset 27637:cbf7072fb372

Allow fallback for broken XMPP <message/> types. Closes #7837.
author Paul Aurich <paul@darkrain42.org>
date Mon, 20 Jul 2009 18:26:13 +0000
parents e8ec4a3e6706
children 8b669aaa3ed7
files libpurple/protocols/jabber/message.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Mon Jul 20 18:16:36 2009 +0000
+++ b/libpurple/protocols/jabber/message.c	Mon Jul 20 18:26:13 2009 +0000
@@ -790,6 +790,10 @@
 		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 @@
 		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);
 }