# HG changeset patch # User Waqas Hussain # Date 1255866356 -18000 # Node ID 6b6b924ee558f704c7127bb3019e396b6b928c26 # Parent b89d61db74d16171c5050a60c63e6504f6ed88a1 MUC: Re-enable nick changes for non-multisession nicks. diff -r b89d61db74d1 -r 6b6b924ee558 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Sun Oct 18 12:26:53 2009 +0100 +++ b/plugins/muc/muc.lib.lua Sun Oct 18 16:45:56 2009 +0500 @@ -253,7 +253,7 @@ 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();