Mercurial > pidgin
comparison libpurple/protocols/jabber/message.c @ 28663:5b449584fead
jabber: Delayed Delivery namespaces
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 28 Nov 2009 04:05:17 +0000 |
parents | 9ae3e70a327b |
children | 5bacbd78e2b4 b0f1698c52f8 |
comparison
equal
deleted
inserted
replaced
28662:5306a71c4eb2 | 28663:5b449584fead |
---|---|
740 jm->type = JABBER_MESSAGE_EVENT; | 740 jm->type = JABBER_MESSAGE_EVENT; |
741 for(items = xmlnode_get_child(child,"items"); items; items = items->next) | 741 for(items = xmlnode_get_child(child,"items"); items; items = items->next) |
742 jm->eventitems = g_list_append(jm->eventitems, items); | 742 jm->eventitems = g_list_append(jm->eventitems, items); |
743 } else if(!strcmp(child->name, "attention") && !strcmp(xmlns, NS_ATTENTION)) { | 743 } else if(!strcmp(child->name, "attention") && !strcmp(xmlns, NS_ATTENTION)) { |
744 jm->hasBuzz = TRUE; | 744 jm->hasBuzz = TRUE; |
745 } else if(!strcmp(child->name, "delay") && !strcmp(xmlns,"urn:xmpp:delay")) { | 745 } else if(!strcmp(child->name, "delay") && !strcmp(xmlns, NS_DELAYED_DELIVERY)) { |
746 const char *timestamp = xmlnode_get_attrib(child, "stamp"); | 746 const char *timestamp = xmlnode_get_attrib(child, "stamp"); |
747 jm->delayed = TRUE; | 747 jm->delayed = TRUE; |
748 if(timestamp) | 748 if(timestamp) |
749 jm->sent = purple_str_to_time(timestamp, TRUE, NULL, NULL, NULL); | 749 jm->sent = purple_str_to_time(timestamp, TRUE, NULL, NULL, NULL); |
750 } else if(!strcmp(child->name, "x")) { | 750 } else if(!strcmp(child->name, "x")) { |
751 if(!strcmp(xmlns, "jabber:x:delay")) { | 751 if(!strcmp(xmlns, NS_DELAYED_DELIVERY_LEGACY)) { |
752 const char *timestamp = xmlnode_get_attrib(child, "stamp"); | 752 const char *timestamp = xmlnode_get_attrib(child, "stamp"); |
753 jm->delayed = TRUE; | 753 jm->delayed = TRUE; |
754 if(timestamp) | 754 if(timestamp) |
755 jm->sent = purple_str_to_time(timestamp, TRUE, NULL, NULL, NULL); | 755 jm->sent = purple_str_to_time(timestamp, TRUE, NULL, NULL, NULL); |
756 } else if(!strcmp(xmlns, "jabber:x:conference") && | 756 } else if(!strcmp(xmlns, "jabber:x:conference") && |