plugins/mod_announce.lua
changeset 5014 b2006c1cfa85
parent 4926 58714123f600
child 5076 88fb94df9b18
--- a/plugins/mod_announce.lua	Thu Jul 26 04:33:17 2012 +0200
+++ b/plugins/mod_announce.lua	Thu Jul 26 04:35:13 2012 +0200
@@ -25,7 +25,7 @@
 			for username in pairs(host_session.sessions) do
 				c = c + 1;
 				message.attr.to = username.."@"..hostname;
-				core_post_stanza(host_session, message);
+				module:send(message);
 			end
 		end
 	end