Changeset

5317:86fab046813f

mod_pubsub: Broadcast items correctly on new subscriptions
author Kim Alvefur <zash@zash.se>
date Mon, 28 Jan 2013 01:06:05 +0100
parents 5316:310c7e5bb906
children 5318:989acb4ad1de
files plugins/mod_pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Sun Jan 27 17:11:45 2013 +0100
+++ b/plugins/mod_pubsub.lua	Mon Jan 28 01:06:05 2013 +0100
@@ -143,7 +143,7 @@
 		if items then
 			local jids = { [jid] = options or true };
 			for id, item in pairs(items) do
-				service.config.broadcaster(node, jids, item);
+				service.config.broadcaster("items", node, jids, item);
 			end
 		end
 	end