Comparison

plugins/muc/muc.lib.lua @ 3590:dcc5f3402f5b

MUC: Added a missing :up() to the stanza building for presence broadcast (thanks Zash).
author Waqas Hussain <waqas20@gmail.com>
date Wed, 10 Nov 2010 05:32:09 +0500
parent 3580:39547152bb72
child 3591:dff4a77ee285
comparison
equal deleted inserted replaced
3589:1792610e169e 3590:dcc5f3402f5b
111 stanza:tag("status", {code=code}):up(); 111 stanza:tag("status", {code=code}):up();
112 end 112 end
113 self:broadcast_except_nick(stanza, stanza.attr.from); 113 self:broadcast_except_nick(stanza, stanza.attr.from);
114 local me = self._occupants[stanza.attr.from]; 114 local me = self._occupants[stanza.attr.from];
115 if me then 115 if me then
116 stanza:tag("status", {code='110'}); 116 stanza:tag("status", {code='110'}):up();
117 stanza.attr.to = sid; 117 stanza.attr.to = sid;
118 self:_route_stanza(stanza); 118 self:_route_stanza(stanza);
119 end 119 end
120 end 120 end
121 function room_mt:broadcast_message(stanza, historic) 121 function room_mt:broadcast_message(stanza, historic)