]> granicus.if.org Git - ejabberd/commitdiff
fix PEP broadcasting (thanks to Karim Gemayel)(EJAB-1411)
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 10 Mar 2011 11:24:56 +0000 (12:24 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 10 Mar 2011 11:24:56 +0000 (12:24 +0100)
src/mod_pubsub/mod_pubsub.erl

index 7cca1477c57e031939f78e393bbcaac89e36723a..a01a2a14815f4abd698bc0ed7e86b9dc0ade8eb3 100644 (file)
@@ -3483,7 +3483,7 @@ broadcast({U, S, R}, Node, NodeId, Type, NodeOptions, Subscriptions, Stanza, SHI
            %% set the from address on the notification to the bare JID of the account owner
            %% Also, add "replyto" if entity has presence subscription to the account owner
            %% See XEP-0163 1.1 section 4.3.1
-           Event = {pep_message, binary_to_list(Node)++"+notify"},
+           Event = {pep_message, << Node/binary, <<"+notify">>/binary >>},
            Message = case get_option(NodeOptions, notification_type, headline) of
                normal -> Stanza;
                MsgType -> add_message_type(Stanza, atom_to_list(MsgType))