24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-12 21:52:07 +02:00

Fix support for registration from C2S connections

This commit is contained in:
Badlop 2010-04-19 16:08:01 +02:00
parent ab77bb5466
commit 6cdfec1284

View File

@ -289,8 +289,8 @@ send_registration_notifications(UJID, Source) ->
end.
check_from(JID, Server) ->
case {exmpp_jid:node_as_list(JID), exmpp_jid:prep_domain_as_list(JID)} of
{"", ""} ->
case {exmpp_jid:node(JID), exmpp_jid:prep_domain(JID)} of
{undefined, undefined} ->
allow;
_ ->
Access = gen_mod:get_module_opt(Server, ?MODULE, access_from, none),