pidgin: ac87c285: I missed a few presence types.

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Jul 6 00:25:36 EDT 2009


-----------------------------------------------------------------
Revision: ac87c285c7056f86005dc157b9870745de471f74
Ancestor: 492a2886ec9d79a5b7333ebd704d0a64d4f6cf7e
Author: darkrain42 at pidgin.im
Date: 2009-07-06T04:19:26
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ac87c285c7056f86005dc157b9870745de471f74

Modified files:
        libpurple/protocols/jabber/presence.c

ChangeLog: 

I missed a few presence types.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/presence.c	3affd2ab85b29313195efbc122e1076d1da447fa
+++ libpurple/protocols/jabber/presence.c	9cdfda79fba53cb3ad3ada74ef874ac9789fe3d3
@@ -566,6 +566,14 @@ void jabber_presence_parse(JabberStream 
 		 * acknowledging this (and the others) at some point. */
 		jabber_id_free(jid);
 		return;
+	} else if (g_str_equal(type, "probe")) {
+		purple_debug_warning("jabber", "Ignoring presence probe\n");
+		jabber_id_free(jid);
+		return;
+	} else if (g_str_equal(type, "unavailable")) {
+		state = JABBER_BUDDY_STATE_UNAVAILABLE;
+	} else if (g_str_equal(type, "unsubscribed")) {
+		state = JABBER_BUDDY_STATE_UNKNOWN;
 	} else {
 		purple_debug_warning("jabber", "Ignoring presence with invalid type "
 		                     "'%s'\n", type);


More information about the Commits mailing list