diff libpurple/protocols/jabber/presence.c @ 27185:e49739413d73

Remove obsolete XEP-0091 (Legacy Delayed Delivery) code.
author Paul Aurich <paul@darkrain42.org>
date Thu, 11 Jun 2009 22:33:33 +0000
parents 5330ffe6ca86
children 048bcf41deef 01927ce552bc
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Thu Jun 11 22:28:41 2009 +0000
+++ b/libpurple/protocols/jabber/presence.c	Thu Jun 11 22:33:33 2009 +0000
@@ -576,7 +576,7 @@
 			/* The rest of the cases used to check xmlns individually. */
 			continue;
 		} else if(!strcmp(y->name, "delay") && !strcmp(xmlns, "urn:xmpp:delay")) {
-			/* XXX: compare the time.  jabber:x:delay can happen on presence packets that aren't really and truly delayed */
+			/* XXX: compare the time.  urn:xmpp:delay can happen on presence packets that aren't really and truly delayed */
 			delayed = TRUE;
 			stamp = xmlnode_get_attrib(y, "stamp");
 		} else if(!strcmp(y->name, "c") && !strcmp(xmlns, "http://jabber.org/protocol/caps")) {
@@ -584,11 +584,7 @@
 		} else if (g_str_equal(y->name, "nick") && g_str_equal(xmlns, "http://jabber.org/protocol/nick")) {
 			nickname = xmlnode_get_data(y);
 		} else if(!strcmp(y->name, "x")) {
-			if(!strcmp(xmlns, "jabber:x:delay")) {
-				/* XXX: compare the time.  jabber:x:delay can happen on presence packets that aren't really and truly delayed */
-				delayed = TRUE;
-				stamp = xmlnode_get_attrib(y, "stamp");
-			} else if(!strcmp(xmlns, "http://jabber.org/protocol/muc#user")) {
+			if(!strcmp(xmlns, "http://jabber.org/protocol/muc#user")) {
 				xmlnode *z;
 
 				muc = TRUE;