changeset 27448:b41b69e8b341

I missed a few presence types.
author Paul Aurich <paul@darkrain42.org>
date Mon, 06 Jul 2009 04:19:26 +0000
parents 712289e2aa6d
children 14131ba5a07c 01927ce552bc 97947f51b221 6d26258e9f1d
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Mon Jul 06 03:45:57 2009 +0000
+++ b/libpurple/protocols/jabber/presence.c	Mon Jul 06 04:19:26 2009 +0000
@@ -566,6 +566,14 @@
 		 * 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);