]> granicus.if.org Git - ejabberd/commitdiff
Fetch 'registration_watchers' option from the correct module
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 23 Mar 2018 06:42:55 +0000 (09:42 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 23 Mar 2018 06:42:55 +0000 (09:42 +0300)
Fixes #2337

src/mod_register.erl

index 98fcc944f0c52a39c0b7edf2cd21e7e8e09a37e0..5c17c5d331ec1b5a524d1be70027dc749a1e3d00 100644 (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 =