diff options
Diffstat (limited to 'src/mod_version.erl')
-rw-r--r-- | src/mod_version.erl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mod_version.erl b/src/mod_version.erl index e46262a2a..0e3b96bd1 100644 --- a/src/mod_version.erl +++ b/src/mod_version.erl @@ -5,7 +5,7 @@ %%% Created : 18 Jan 2003 by Alexey Shchepin <alexey@process-one.net> %%% %%% -%%% ejabberd, Copyright (C) 2002-2015 ProcessOne +%%% ejabberd, Copyright (C) 2002-2016 ProcessOne %%% %%% This program is free software; you can redistribute it and/or %%% modify it under the terms of the GNU General Public License as @@ -27,9 +27,12 @@ -author('alexey@process-one.net'). +-protocol({xep, 92, '1.1'}). + -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"). @@ -88,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]. |