aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Sautret <jerome@MacBook-Pro-de-Jerome-2.local>2017-06-01 12:12:46 +0200
committerChristophe Romain <christophe.romain@process-one.net>2017-07-27 17:06:34 +0200
commit3ca62a797a7911e3a3022850a119a2739979f6d5 (patch)
treeed49b7078f9449d4292c1e0a5fd739e1156e9640
parentAdd muc related hooks (diff)
Fix nick bug with MUC on riak
-rw-r--r--src/mod_muc_riak.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc_riak.erl b/src/mod_muc_riak.erl
index 8dd1eddf8..42e644fdd 100644
--- a/src/mod_muc_riak.erl
+++ b/src/mod_muc_riak.erl
@@ -60,7 +60,7 @@ restore_room(_LServer, Host, Name) ->
forget_room(_LServer, Host, Name) ->
{atomic, ejabberd_riak:delete(muc_room, {Name, Host})}.
-can_use_nick(LServer, Host, JID, Nick) ->
+can_use_nick(_LServer, Host, JID, Nick) ->
{LUser, LServer, _} = jid:tolower(JID),
LUS = {LUser, LServer},
case ejabberd_riak:get_by_index(muc_registered,