Software / code / prosody
Comparison
util/muc.lua @ 1349:1d6c4a6c75e5
util.muc: Fixed error occuring on room leave
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sun, 14 Jun 2009 16:28:01 +0500 |
| parent | 1170:4845372a2c03 |
| child | 1350:ea43c371228a |
comparison
equal
deleted
inserted
replaced
| 1348:ffa70c0df850 | 1349:1d6c4a6c75e5 |
|---|---|
| 193 elseif type == "unavailable" then -- unavailable | 193 elseif type == "unavailable" then -- unavailable |
| 194 if current_nick then | 194 if current_nick then |
| 195 log("debug", "%s leaving %s", current_nick, room); | 195 log("debug", "%s leaving %s", current_nick, room); |
| 196 local data = self._participants[current_nick]; | 196 local data = self._participants[current_nick]; |
| 197 data.role = 'none'; | 197 data.role = 'none'; |
| 198 room_broadcast_presence(room, pr); | 198 room_broadcast_presence(self, pr); |
| 199 self._participants[current_nick] = nil; | 199 self._participants[current_nick] = nil; |
| 200 self._jid_nick[from] = nil; | 200 self._jid_nick[from] = nil; |
| 201 end | 201 end |
| 202 elseif not type then -- available | 202 elseif not type then -- available |
| 203 if current_nick then | 203 if current_nick then |