# HG changeset patch
# User Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
# Date 1288893569 -3600
# Node ID 13011b26181c4842a2cdf75f68cd72fd81c2e0a9
# Parent  b2faacfefb90c4bd4641d90b81a2e31272fc9208
Fix non-PubSub commands.

diff --git a/psgxs.js b/psgxs.js
--- 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;