From 78bb06c6aaceb59bd0a3f25cbb084450ec33d260 Mon Sep 17 00:00:00 2001 From: Tom Quackenbush Date: Tue, 13 Sep 2016 17:23:47 -0400 Subject: [PATCH] add depends/2 to mod_pottymouth... seems to be required by gen_mod now --- mod_pottymouth/src/mod_pottymouth.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod_pottymouth/src/mod_pottymouth.erl b/mod_pottymouth/src/mod_pottymouth.erl index 1f4ce9d..8fa3e59 100644 --- a/mod_pottymouth/src/mod_pottymouth.erl +++ b/mod_pottymouth/src/mod_pottymouth.erl @@ -8,7 +8,8 @@ start/2, stop/1, on_filter_packet/1, - mod_opt_type/1 + mod_opt_type/1, + depends/2 ]). -include("ejabberd.hrl"). @@ -91,3 +92,4 @@ on_filter_packet(Msg) -> mod_opt_type(blacklists) -> fun (A) when is_list(A) -> A end; mod_opt_type(charmaps) -> fun (A) when is_list(A) -> A end; mod_opt_type(_) -> [blacklists, charmaps]. +depends(_Host, _Opts) -> [].