aboutsummaryrefslogtreecommitdiff
path: root/src/mod_version.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_version.erl')
-rw-r--r--src/mod_version.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mod_version.erl b/src/mod_version.erl
index 669a401d4..55609d1ea 100644
--- a/src/mod_version.erl
+++ b/src/mod_version.erl
@@ -31,7 +31,8 @@
-behaviour(gen_mod).
--export([start/2, stop/1, process_local_iq/3]).
+-export([start/2, stop/1, process_local_iq/3,
+ mod_opt_type/1]).
-include("ejabberd.hrl").
-include("logger.hrl").
@@ -90,3 +91,8 @@ get_os() ->
OS = <<OSType/binary, " ", OSVersion/binary>>,
#xmlel{name = <<"os">>, attrs = [],
children = [{xmlcdata, OS}]}.
+
+mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1;
+mod_opt_type(show_os) ->
+ fun (B) when is_boolean(B) -> B end;
+mod_opt_type(_) -> [iqdisc, show_os].