Changeset

1234:0ff02499f05c

mod_message, mod_iq: A little cleanup
author Waqas Hussain <waqas20@gmail.com>
date Sat, 30 May 2009 17:48:12 +0500
parents 1233:4c8c3d7d9c27
children 1235:be8b51a8ab03
files plugins/mod_iq.lua plugins/mod_message.lua
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_iq.lua	Sat May 30 17:38:53 2009 +0500
+++ b/plugins/mod_iq.lua	Sat May 30 17:48:12 2009 +0500
@@ -1,3 +1,6 @@
+
+local full_sessions = full_sessions;
+local bare_sessions = bare_sessions;
 
 module:hook("iq/full", function(data)
 	-- IQ to full JID recieved
--- a/plugins/mod_message.lua	Sat May 30 17:38:53 2009 +0500
+++ b/plugins/mod_message.lua	Sat May 30 17:48:12 2009 +0500
@@ -23,7 +23,7 @@
 	-- message to bare JID recieved
 	local origin, stanza = data.origin, data.stanza;
 
-	local sessions = bare_sessoins[stanza.attr.to];
+	local sessions = bare_sessions[stanza.attr.to];
 	if sessions then sessions = sessions.sessions; end
 	
 	if sessions then