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"}) |