changeset 31:13011b26181c

Fix non-PubSub commands.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 04 Nov 2010 18:59:29 +0100
parents b2faacfefb90
children 8735fc6f6f53
files psgxs.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/psgxs.js
+++ b/psgxs.js
@@ -124,7 +124,7 @@ function onIq(stanza) {
 				if (module.number && (module.number != k))
 					continue;
 
-				var toSend = module.func(response, stanza, child2, to);
+				var toSend = module.func(response, stanza, child1, to);
 				if (toSend) {
 					response = toSend;
 					send = true;