Software /
code /
verse
Comparison
plugins/groupchat.lua @ 189:033f1bd7420d
plugins.groupchat: Fix self reference when leaving rooms
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 01 Feb 2011 04:53:40 +0100 |
parent | 187:7ad218bd5fde |
child | 197:7e98cf2c1d8d |
comparison
equal
deleted
inserted
replaced
187:7ad218bd5fde | 189:033f1bd7420d |
---|---|
140 function room_mt:set_subject(text) | 140 function room_mt:set_subject(text) |
141 self:send(st.message():tag("subject"):text(text)); | 141 self:send(st.message():tag("subject"):text(text)); |
142 end | 142 end |
143 | 143 |
144 function room_mt:leave(message) | 144 function room_mt:leave(message) |
145 self.stream:event("groupchat/leaving", room); | 145 self.stream:event("groupchat/leaving", self); |
146 self:send(st.presence({type="unavailable"})); | 146 self:send(st.presence({type="unavailable"})); |
147 end | 147 end |
148 | 148 |
149 function room_mt:admin_set(nick, what, value, reason) | 149 function room_mt:admin_set(nick, what, value, reason) |
150 self:send(st.iq({type="set"}) | 150 self:send(st.iq({type="set"}) |