From 2bf5a362cef4183bad24112ef237c0259daed2c3 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 12 Aug 2022 12:04:27 +0200 Subject: [PATCH] This doesn't stop banword, but at least satisfies Dialyzer --- mod_pottymouth/src/mod_pottymouth.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_pottymouth/src/mod_pottymouth.erl b/mod_pottymouth/src/mod_pottymouth.erl index 99dcbeb..31df84d 100644 --- a/mod_pottymouth/src/mod_pottymouth.erl +++ b/mod_pottymouth/src/mod_pottymouth.erl @@ -70,7 +70,7 @@ start(_Host, Opts) -> stop(Host) -> Blacklists = gen_mod:get_module_opt(Host, ?MODULE, blacklists), - lists:map(fun banword_gen_server:stop/0, Blacklists), + banword_gen_server:stop(), CharMaps = gen_mod:get_module_opt(Host, ?MODULE, charmaps), lists:map(fun normalize_leet_gen_server:stop/1, CharMaps), ejabberd_hooks:delete(filter_packet, global, ?MODULE, on_filter_packet, 0),