Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/pep.c @ 24499:4caae7801f4d
Fix the namespace URL we look for on PEP reply stanzas to match the URL we
use on the "get" requests. Fixes #7291.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 28 Nov 2008 01:49:58 +0000 |
parents | 680a3aea5eb6 |
children | 5f9a24d1c25e e1f363f8fd6b 5dd25c58b65e |
comparison
equal
deleted
inserted
replaced
24498:2675fda76ddf | 24499:4caae7801f4d |
---|---|
52 g_hash_table_replace(pep_handlers, g_strdup(xmlns), handlerfunc); | 52 g_hash_table_replace(pep_handlers, g_strdup(xmlns), handlerfunc); |
53 } | 53 } |
54 | 54 |
55 static void do_pep_iq_request_item_callback(JabberStream *js, xmlnode *packet, gpointer data) { | 55 static void do_pep_iq_request_item_callback(JabberStream *js, xmlnode *packet, gpointer data) { |
56 const char *from = xmlnode_get_attrib(packet,"from"); | 56 const char *from = xmlnode_get_attrib(packet,"from"); |
57 xmlnode *pubsub = xmlnode_get_child_with_namespace(packet,"pubsub","http://jabber.org/protocol/pubsub#event"); | 57 xmlnode *pubsub = xmlnode_get_child_with_namespace(packet,"pubsub","http://jabber.org/protocol/pubsub"); |
58 xmlnode *items = NULL; | 58 xmlnode *items = NULL; |
59 JabberPEPHandler *cb = data; | 59 JabberPEPHandler *cb = data; |
60 | 60 |
61 if(pubsub) | 61 if(pubsub) |
62 items = xmlnode_get_child(pubsub, "items"); | 62 items = xmlnode_get_child(pubsub, "items"); |