diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-05-30 17:48:12 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-05-30 17:48:12 +0500 |
commit | b4359c6b35505c62116b1815a4ef57a042d65900 (patch) | |
tree | d3679018eab20470f16b0ce6aa1636beeb04e588 /plugins | |
parent | 1dcb377bedf2141f60607f0c809d6479cf5897e9 (diff) | |
download | prosody-b4359c6b35505c62116b1815a4ef57a042d65900.tar.gz prosody-b4359c6b35505c62116b1815a4ef57a042d65900.zip |
mod_message, mod_iq: A little cleanup
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_iq.lua | 3 | ||||
-rw-r--r-- | plugins/mod_message.lua | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_iq.lua b/plugins/mod_iq.lua index 10960684..e0c9813d 100644 --- a/plugins/mod_iq.lua +++ b/plugins/mod_iq.lua @@ -1,4 +1,7 @@ +local full_sessions = full_sessions; +local bare_sessions = bare_sessions; + module:hook("iq/full", function(data) -- IQ to full JID recieved local origin, stanza = data.origin, data.stanza; diff --git a/plugins/mod_message.lua b/plugins/mod_message.lua index a99287ab..c0abe936 100644 --- a/plugins/mod_message.lua +++ b/plugins/mod_message.lua @@ -23,7 +23,7 @@ module:hook("message/bare", function(data) -- 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 |