cpw.darkrain42.obsolete: a383ad6a: Remove obsolete XEP-0091 (Legacy Delayed...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Fri Jun 12 02:05:53 EDT 2009
-----------------------------------------------------------------
Revision: a383ad6a4ae7e98bbcb32b4193531ccf960eb2bb
Ancestor: c283cf62be1320cef19b3207806b902f118186b3
Author: darkrain42 at pidgin.im
Date: 2009-06-11T22:33:33
Branch: im.pidgin.cpw.darkrain42.obsolete
URL: http://d.pidgin.im/viewmtn/revision/info/a383ad6a4ae7e98bbcb32b4193531ccf960eb2bb
Modified files:
libpurple/protocols/jabber/message.c
libpurple/protocols/jabber/presence.c
ChangeLog:
Remove obsolete XEP-0091 (Legacy Delayed Delivery) code.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/message.c 82d8a9d31758302bec709fea15b7447bb65ffc16
+++ libpurple/protocols/jabber/message.c 005fac383641fa420d98c4c8b2f0c43e25525d98
@@ -740,12 +740,7 @@ void jabber_message_parse(JabberStream *
if(timestamp)
jm->sent = purple_str_to_time(timestamp, TRUE, NULL, NULL, NULL);
} else if(!strcmp(child->name, "x")) {
- if(!strcmp(xmlns, "jabber:x:delay")) {
- const char *timestamp = xmlnode_get_attrib(child, "stamp");
- jm->delayed = TRUE;
- if(timestamp)
- jm->sent = purple_str_to_time(timestamp, TRUE, NULL, NULL, NULL);
- } else if(!strcmp(xmlns, "jabber:x:conference") &&
+ if(!strcmp(xmlns, "jabber:x:conference") &&
jm->type != JABBER_MESSAGE_GROUPCHAT_INVITE &&
jm->type != JABBER_MESSAGE_ERROR) {
const char *jid = xmlnode_get_attrib(child, "jid");
============================================================
--- libpurple/protocols/jabber/presence.c 5e9b0d51856feb3b541a226f70c7b7d83cd52c98
+++ libpurple/protocols/jabber/presence.c cdb99b32cbba2a31ca1c89c5b0b28188167de62c
@@ -576,7 +576,7 @@ void jabber_presence_parse(JabberStream
/* 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 @@ void jabber_presence_parse(JabberStream
} 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;
More information about the Commits
mailing list