changeset 17605:3399dd1c258d

Forgot to implement XEP-0203 for presence packets, too.
author Andreas Monitzer <pidgin@monitzer.com>
date Wed, 20 Jun 2007 00:25:37 +0000
parents 34411cc535de
children 108f3b42976f
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Wed Jun 20 00:22:16 2007 +0000
+++ b/libpurple/protocols/jabber/presence.c	Wed Jun 20 00:25:37 2007 +0000
@@ -432,6 +432,9 @@
 				priority = atoi(p);
 				g_free(p);
 			}
+		} else if(!strcmp(y->name, "delay")) {
+			/* XXX: compare the time.  jabber:x:delay can happen on presence packets that aren't really and truly delayed */
+			delayed = TRUE;
 		} else if(!strcmp(y->name, "x")) {
 			const char *xmlns = xmlnode_get_namespace(y);
 			if(xmlns && !strcmp(xmlns, "jabber:x:delay")) {