Changeset

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
parents 187:7ad218bd5fde
children 190:751a69610eaa
files plugins/groupchat.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/groupchat.lua	Tue Jan 25 19:33:15 2011 +0100
+++ b/plugins/groupchat.lua	Tue Feb 01 04:53:40 2011 +0100
@@ -142,7 +142,7 @@
 end
 
 function room_mt:leave(message)
-	self.stream:event("groupchat/leaving", room);
+	self.stream:event("groupchat/leaving", self);
 	self:send(st.presence({type="unavailable"}));
 end