diff options
Diffstat (limited to 'src/mod_version.erl')
-rw-r--r-- | src/mod_version.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mod_version.erl b/src/mod_version.erl index 552a2129c..d8218b765 100644 --- a/src/mod_version.erl +++ b/src/mod_version.erl @@ -38,10 +38,11 @@ -include("ejabberd.hrl"). - -start(Host, Opts) -> +start(Host, Opts) when is_list(Host) -> + start(list_to_binary(Host), Opts); +start(HostB, Opts) -> IQDisc = gen_mod:get_opt(iqdisc, Opts, one_queue), - gen_iq_handler:add_iq_handler(ejabberd_local, list_to_binary(Host), ?NS_SOFT_VERSION, + gen_iq_handler:add_iq_handler(ejabberd_local, HostB, ?NS_SOFT_VERSION, ?MODULE, process_local_iq, IQDisc). stop(Host) -> |