aboutsummaryrefslogtreecommitdiff
path: root/src/mod_configure.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_configure.erl')
-rw-r--r--src/mod_configure.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mod_configure.erl b/src/mod_configure.erl
index 4f436649b..3fced95a3 100644
--- a/src/mod_configure.erl
+++ b/src/mod_configure.erl
@@ -56,8 +56,9 @@
%% Copied from ejabberd_sm.erl
-record(session, {sid, usr, us, priority, info}).
-start(Host, _Opts) ->
- HostB = list_to_binary(Host),
+start(Host, Opts) when is_list(Host) ->
+ start(list_to_binary(Host), Opts);
+start(HostB, _Opts) ->
ejabberd_hooks:add(disco_local_items, HostB, ?MODULE, get_local_items, 50),
ejabberd_hooks:add(disco_local_features, HostB, ?MODULE, get_local_features, 50),
ejabberd_hooks:add(disco_local_identity, HostB, ?MODULE, get_local_identity, 50),