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

Fetch 'registration_watchers' option from the correct module

Fixes #2337
This commit is contained in:
Evgeniy Khramtsov 2018-03-23 09:42:55 +03:00
parent b23be02dfe
commit f5bab5d6c4

View File

@ -388,7 +388,7 @@ send_welcome_message(JID) ->
send_registration_notifications(Mod, UJID, Source) -> send_registration_notifications(Mod, UJID, Source) ->
Host = UJID#jid.lserver, Host = UJID#jid.lserver,
case gen_mod:get_module_opt(Host, Mod, registration_watchers) of case gen_mod:get_module_opt(Host, ?MODULE, registration_watchers) of
[] -> ok; [] -> ok;
JIDs when is_list(JIDs) -> JIDs when is_list(JIDs) ->
Body = Body =