]> granicus.if.org Git - ejabberd/commitdiff
Revert "Fix get_module_opt call in mod_block_strangers"
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 27 Jul 2017 16:23:10 +0000 (18:23 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 27 Jul 2017 16:23:10 +0000 (18:23 +0200)
This reverts commit e5f64bc24af581b7e8ffd73e7490cc93423d960b.

src/mod_block_strangers.erl

index bc9cb5ce4c7082e5abe73d412ee0b078dda0587f..49d79e04341de677aca81ad3e15b548b7f8881b6 100644 (file)
@@ -59,10 +59,7 @@ filter_packet({#message{} = Msg, State} = Acc) ->
     LBFrom = jid:remove_resource(LFrom),
     #{pres_a := PresA, jid := JID, lserver := LServer} = State,
     AllowLocalUsers =
-        gen_mod:get_module_opt(
-          LServer, ?MODULE, allow_local_users,
-          fun(B) when is_boolean(B) -> B end,
-          true),
+        gen_mod:get_module_opt(LServer, ?MODULE, allow_local_users, true),
     case (Msg#message.body == [] andalso
           Msg#message.subject == [])
         orelse (AllowLocalUsers andalso