]> granicus.if.org Git - ejabberd/commitdiff
Stop hook on message drop in mod_block_strangers
authorAlexey Shchepin <alexey@process-one.net>
Mon, 16 Jan 2017 15:45:26 +0000 (18:45 +0300)
committerAlexey Shchepin <alexey@process-one.net>
Mon, 16 Jan 2017 15:45:26 +0000 (18:45 +0300)
src/mod_block_strangers.erl

index 34a40d03626a660afb429b295e9adff0e1f34976..66dbe0acfc8ed76341416ade283a46a32da91829 100644 (file)
@@ -81,7 +81,7 @@ filter_packet({#message{} = Msg, State} = Acc) ->
             end,
             if
                 Drop ->
-                    {drop, State};
+                    {stop, {drop, State}};
                 true ->
                     Acc
             end