Diff

plugins/mod_roster.lua @ 114:bed2a8508cf5

Added session property for interested resources
author Waqas Hussain <waqas20@gmail.com>
date Thu, 23 Oct 2008 02:11:27 +0500
parent 110:bb5ac5976a97
child 132:9a4aa57af367
line wrap: on
line diff
--- a/plugins/mod_roster.lua	Thu Oct 23 00:46:38 2008 +0500
+++ b/plugins/mod_roster.lua	Thu Oct 23 02:11:27 2008 +0500
@@ -26,6 +26,7 @@
 						end
 					end
 					send(session, roster);
+					session.interested = true; -- resource is interested in roster updates
 					return true;
 				elseif stanza.attr.type == "set" then
 					local query = stanza.tags[1];