aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-18 16:45:56 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-18 16:45:56 +0500
commit91e96a8a1ca8da769763f8129d530eb9d393683f (patch)
tree88e17358fa3587a9b9a1864252d3bae850fd8f27 /plugins
parent531956142c8f024a7da72207f912561d0295a8fc (diff)
downloadprosody-91e96a8a1ca8da769763f8129d530eb9d393683f.tar.gz
prosody-91e96a8a1ca8da769763f8129d530eb9d393683f.zip
MUC: Re-enable nick changes for non-multisession nicks.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index a56f64dd..8719f975 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -253,7 +253,7 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc
self:broadcast_presence(pr, from);
else -- change nick
local occupant = self._occupants[current_nick];
- local is_multisession = next(occupant, next(occupant));
+ local is_multisession = next(occupant.sessions, next(occupant.sessions));
if self._occupants[to] or is_multisession then
log("debug", "%s couldn't change nick", current_nick);
local reply = st.error_reply(stanza, "cancel", "conflict"):up();