From 8045f4c60ed29c89bbfd58315b8451a8bf2b2c21 Mon Sep 17 00:00:00 2001 From: ytkang Date: Wed, 11 Jul 2018 17:46:45 +0900 Subject: [PATCH] Fix mod_pottymouth install error --- mod_pottymouth/src/mod_pottymouth.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mod_pottymouth/src/mod_pottymouth.erl b/mod_pottymouth/src/mod_pottymouth.erl index 7c31534..f954064 100644 --- a/mod_pottymouth/src/mod_pottymouth.erl +++ b/mod_pottymouth/src/mod_pottymouth.erl @@ -2,7 +2,7 @@ -behaviour(gen_mod). --include("ejabberd.hrl"). +% -include("ejabberd.hrl"). -include("logger.hrl"). -include("xmpp.hrl"). @@ -12,7 +12,8 @@ on_filter_packet/1, mod_opt_type/1, depends/2, - reload/3 + reload/3, + mod_options/1 ]). -import(bloom_gen_server, [start/0, stop/0, member/1]). @@ -92,3 +93,5 @@ mod_opt_type(charmaps) -> fun (A) when is_list(A) -> A end; mod_opt_type(_) -> [blacklists, charmaps]. depends(_Host, _Opts) -> []. reload(_Host, _NewOpts, _OldOpts) -> ok. +mod_options(_) -> + [{blacklists, []},{charmaps, []}]. \ No newline at end of file