summaryrefslogtreecommitdiff
path: root/src/mod_http_bind.erl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mod_http_bind.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mod_http_bind.erl b/src/mod_http_bind.erl
index 773ef241..1c772ce1 100644
--- a/src/mod_http_bind.erl
+++ b/src/mod_http_bind.erl
@@ -37,7 +37,7 @@
-behaviour(gen_mod).
--export([start/2, stop/1, process/2]).
+-export([start/2, stop/1, process/2, mod_opt_type/1]).
-include("ejabberd.hrl").
-include("logger.hrl").
@@ -142,3 +142,9 @@ migrate_database() ->
%% of actually migrating data, let's just destroy the table
mnesia:delete_table(http_bind)
end.
+
+mod_opt_type(max_inactivity) ->
+ fun (I) when is_integer(I), I > 0 -> I end;
+mod_opt_type(max_pause) ->
+ fun (I) when is_integer(I), I > 0 -> I end;
+mod_opt_type(_) -> [max_inactivity, max_pause].