Comparison

plugins/mod_watchregistrations.lua @ 5014:b2006c1cfa85

mod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome: Use module:send() instead of core_*_stanza()
author Kim Alvefur <zash@zash.se>
date Thu, 26 Jul 2012 04:35:13 +0200
parent 4909:01bfb9a76660
child 5776:bd0ff8ae98a8
child 8152:8e26672df704
comparison
equal deleted inserted replaced
5013:ab693eea0869 5014:b2006c1cfa85
23 return user[v] or user.session and user.session[v] or nil; 23 return user[v] or user.session and user.session[v] or nil;
24 end)); 24 end));
25 for jid in registration_watchers do 25 for jid in registration_watchers do
26 module:log("debug", "Notifying %s", jid); 26 module:log("debug", "Notifying %s", jid);
27 message.attr.to = jid; 27 message.attr.to = jid;
28 core_route_stanza(hosts[host], message); 28 module:send(message);
29 end 29 end
30 end); 30 end);