Comparison

plugins/mod_muc.lua @ 831:e2d2095705dc

MUC: Workaround for a Gajim bug (it includes <x xmlns='http://jabber.org/protocol/muc'/> in nick change presences)
author Waqas Hussain <waqas20@gmail.com>
date Fri, 20 Feb 2009 03:52:04 +0500
parent 830:c0554caf90e6
child 833:5da1130054d1
comparison
equal deleted inserted replaced
830:c0554caf90e6 831:e2d2095705dc
256 rooms:remove(room, current_nick); 256 rooms:remove(room, current_nick);
257 jid_nick:remove(from, room); 257 jid_nick:remove(from, room);
258 end 258 end
259 elseif not type then -- available 259 elseif not type then -- available
260 if current_nick then 260 if current_nick then
261 if #pr == #stanza then 261 if #pr == #stanza or current_nick ~= to then
262 if current_nick == to then -- simple presence 262 if current_nick == to then -- simple presence
263 log("debug", "%s broadcasted presence", current_nick); 263 log("debug", "%s broadcasted presence", current_nick);
264 rooms:get(room, current_nick).sessions[from] = pr; 264 rooms:get(room, current_nick).sessions[from] = pr;
265 broadcast_presence_stanza(room, pr); 265 broadcast_presence_stanza(room, pr);
266 else -- change nick 266 else -- change nick