25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

fix binary conversion of ServerHost in presence/2

SVN Revision: 2901
This commit is contained in:
Christophe Romain 2010-01-13 14:53:05 +00:00
parent db4fe25274
commit 0c9e0168d5

View File

@ -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 ->