aboutsummaryrefslogtreecommitdiff
path: root/src/mod_caps.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-25 10:01:01 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-02-25 10:01:01 +0300
commit603ec9cb19ec8664ca75dd74b1cb3541878a27da (patch)
tree89e0802baeeda5859938e089733d2d426746cfbf /src/mod_caps.erl
parentDon't pass 'from' and 'to' along with stanza in hooks' arguments (diff)
Don't pass empty resource to jid:make()
Diffstat (limited to 'src/mod_caps.erl')
-rw-r--r--src/mod_caps.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_caps.erl b/src/mod_caps.erl
index 42a5d94df..f8c8e3a30 100644
--- a/src/mod_caps.erl
+++ b/src/mod_caps.erl
@@ -395,7 +395,7 @@ caps_write_fun(Host, Node, Features) ->
-spec make_my_disco_hash(binary()) -> binary().
make_my_disco_hash(Host) ->
- JID = jid:make(<<"">>, Host, <<"">>),
+ JID = jid:make(Host),
case {ejabberd_hooks:run_fold(disco_local_features,
Host, empty, [JID, JID, <<"">>, <<"">>]),
ejabberd_hooks:run_fold(disco_local_identity, Host, [],