From 0c9e0168d5d7d6eaf1fa8f0c061f4c168440d9b0 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 13 Jan 2010 14:53:05 +0000 Subject: [PATCH] fix binary conversion of ServerHost in presence/2 SVN Revision: 2901 --- src/mod_pubsub/mod_pubsub.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 040475c31..dc4fbeca2 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -741,6 +741,8 @@ presence_probe(Peer, JID, Pid) -> presence(Host, {presence, User, Server, [Resource], JID}) end end. +presence(ServerHost, Presence) when is_binary(ServerHost) -> + presence(binary_to_list(ServerHost), Presence); presence(ServerHost, Presence) -> SendLoop = case whereis(gen_mod:get_module_proc(ServerHost, ?LOOPNAME)) of undefined ->