Comparison

plugins/mod_message.lua @ 1234:0ff02499f05c

mod_message, mod_iq: A little cleanup
author Waqas Hussain <waqas20@gmail.com>
date Sat, 30 May 2009 17:48:12 +0500
parent 1232:6ddbb583f067
child 1271:e78c161944ab
comparison
equal deleted inserted replaced
1233:4c8c3d7d9c27 1234:0ff02499f05c
21 21
22 module:hook("message/bare", function(data) 22 module:hook("message/bare", function(data)
23 -- message to bare JID recieved 23 -- message to bare JID recieved
24 local origin, stanza = data.origin, data.stanza; 24 local origin, stanza = data.origin, data.stanza;
25 25
26 local sessions = bare_sessoins[stanza.attr.to]; 26 local sessions = bare_sessions[stanza.attr.to];
27 if sessions then sessions = sessions.sessions; end 27 if sessions then sessions = sessions.sessions; end
28 28
29 if sessions then 29 if sessions then
30 -- some resources are online 30 -- some resources are online
31 -- TODO find top resources willing to accept this message 31 -- TODO find top resources willing to accept this message