1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02: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) ->
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;
JIDs when is_list(JIDs) ->
Body =