Comparison

plugins/muc/muc.lib.lua @ 7364:9ea3094b1fca

MUC: Save yourself! (fixes reference to current room)
author Kim Alvefur <zash@zash.se>
date Mon, 18 Apr 2016 19:08:31 +0200
parent 7363:14170d161b39
child 7366:eb3928903009
comparison
equal deleted inserted replaced
7363:14170d161b39 7364:9ea3094b1fca
781 elseif item.attr.role and item.attr.nick and not item.attr.affiliation then 781 elseif item.attr.role and item.attr.nick and not item.attr.affiliation then
782 success, errtype, err = self:set_role(actor, self.jid.."/"..item.attr.nick, item.attr.role, reason); 782 success, errtype, err = self:set_role(actor, self.jid.."/"..item.attr.nick, item.attr.role, reason);
783 else 783 else
784 success, errtype, err = nil, "cancel", "bad-request"; 784 success, errtype, err = nil, "cancel", "bad-request";
785 end 785 end
786 room:save(); 786 self:save();
787 if not success then 787 if not success then
788 origin.send(st.error_reply(stanza, errtype, err)); 788 origin.send(st.error_reply(stanza, errtype, err));
789 else 789 else
790 origin.send(st.reply(stanza)); 790 origin.send(st.reply(stanza));
791 end 791 end