Mercurial > psgxs
diff modules/mod_options.js @ 47:0d3f18bb1d36
Remove usage of fdsq.js in modules.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 10 Mar 2011 16:13:49 +0100 |
parents | 023f767662d3 |
children |
line wrap: on
line diff
--- a/modules/mod_options.js +++ b/modules/mod_options.js @@ -38,7 +38,7 @@ exports.getConfigureSub = { var jid = request.getAttribute('jid'); if (!jid) return makeError(response, errors.sub.configure.subscriber_jid_required.n); - if (toBareJID(jid) != toBareJID(to)) + if (JID.toBare(jid) != JID.toBare(to)) return makeError(response, errors.sub.configure.insufficient_privileges.n); var subs = storage.getSubscription(jid, nodeID); @@ -72,7 +72,7 @@ exports.configureSub = { return makeError(response, errors.node_does_not_exist.n); var jid = unsubscribe.getAttribute('jid'); - if (!jid || toBareJID(jid) != toBareJID(to)) + if (!jid || JID.toBare(jid) != JID.toBare(to)) return makeError(response, errors.sub.unsubscribe.insufficient_privileges.n); var x = request.getChild('x', 'jabber:x:data');