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:
parent
db4fe25274
commit
0c9e0168d5
@ -741,6 +741,8 @@ presence_probe(Peer, JID, Pid) ->
|
|||||||
presence(Host, {presence, User, Server, [Resource], JID})
|
presence(Host, {presence, User, Server, [Resource], JID})
|
||||||
end
|
end
|
||||||
end.
|
end.
|
||||||
|
presence(ServerHost, Presence) when is_binary(ServerHost) ->
|
||||||
|
presence(binary_to_list(ServerHost), Presence);
|
||||||
presence(ServerHost, Presence) ->
|
presence(ServerHost, Presence) ->
|
||||||
SendLoop = case whereis(gen_mod:get_module_proc(ServerHost, ?LOOPNAME)) of
|
SendLoop = case whereis(gen_mod:get_module_proc(ServerHost, ?LOOPNAME)) of
|
||||||
undefined ->
|
undefined ->
|
||||||
|
Loading…
Reference in New Issue
Block a user