Software /
code /
prosody
Changeset
6120:4520439227fc
plugins/muc/muc.lib: Don't get same variable twice.....
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Wed, 19 Mar 2014 15:01:18 -0400 |
parents | 6119:c13f5d6b9b16 |
children | 6121:74bbcef3978e |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Wed Mar 19 15:00:53 2014 -0400 +++ b/plugins/muc/muc.lib.lua Wed Mar 19 15:01:18 2014 -0400 @@ -445,13 +445,12 @@ origin.send(reply:tag("x", {xmlns = "http://jabber.org/protocol/muc"})); return true; else - local data = self._occupants[current_nick]; local to_nick = select(3, jid_split(to)); - log("debug", "%s (%s) changing nick to %s", current_nick, data.jid, to); + log("debug", "%s (%s) changing nick to %s", current_nick, occupant.jid, to); local p = st.presence({type='unavailable', from=current_nick}); self:broadcast_presence(p, from, '303', to_nick); self._occupants[current_nick] = nil; - self._occupants[to] = data; + self._occupants[to] = occupant; self._jid_nick[from] = to; local pr = get_filtered_presence(stanza); pr.attr.from = to;