[ejabberd] rc1: PEP, presence. Bugs?

Jonathan Schleifer js at h3c.de
Fri Feb 8 18:42:52 MSK 2008


Here's a fix for 1.):

Index: mod_pubsub/mod_pubsub.erl
===================================================================
--- mod_pubsub/mod_pubsub.erl	(revision 1177)
+++ mod_pubsub/mod_pubsub.erl	(working copy)
@@ -1697,7 +1697,7 @@
 			 {xmlelement, "item", ItemAttrs, Payload}
 		 end, ToSend),
     Stanza = {xmlelement, "message", [],
-	      [{xmlelement, "x", [{"xmlns", ?NS_PUBSUB_EVENT}],
+	      [{xmlelement, "event", [{"xmlns", ?NS_PUBSUB_EVENT}],
 		[{xmlelement, "items", [{"node", node_to_string(Node)}],
 		  ItemsEls}]}]},
     ejabberd_router ! {route, service_jid(Host), jlib:make_jid(LJID), Stanza}.

-- 
Jonathan


More information about the ejabberd mailing list