diff modules/mod_subscribe.js @ 39:4c808bfe0658

Various little fixes.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 15 Dec 2010 22:22:14 +0100
parents 6697f394301f
children bc717575e66a
line wrap: on
line diff
--- a/modules/mod_subscribe.js
+++ b/modules/mod_subscribe.js
@@ -1,6 +1,7 @@
 var config = require('../configuration');
 var storage = require('../storage');
 var errors = require('../errors');
+var notifs = require('../notifs');
 var makeError = errors.makeError;
 var toBareJID = require('../fdsq').toBareJID;
 var NS = require('../namespaces');
@@ -105,7 +106,7 @@ exports.unsubscribe = {
 	child: 'pubsub',
 	ns: NS.PUBSUB,
 	child2: 'unsubscribe',
-	func: function(response, stanza, request) {
+	func: function(response, stanza, request, to) {
 		if (!config.enabled('subscribe'))
 			return makeError(response, errors.sub.subscribe.not_supported.n);