Diff

mod_sift/mod_sift.lua @ 138:61e1203e9e66

mod_sift: Use event.session, and not event.origin in the resource-unbind handler.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 06 Mar 2010 22:08:20 +0500
parent 137:34a3ec3e7dc3
child 139:3165e56f96a1
line wrap: on
line diff
--- a/mod_sift/mod_sift.lua	Sat Mar 06 21:47:20 2010 +0500
+++ b/mod_sift/mod_sift.lua	Sat Mar 06 22:08:20 2010 +0500
@@ -87,7 +87,7 @@
 
 -- handle user disconnect
 module:hook("resource-unbind", function(event)
-	data[event.origin.full_jid] = nil; -- discard data
+	data[event.session.full_jid] = nil; -- discard data
 end);
 
 -- IQ handler