Mercurial > psgxs
comparison modules/mod_manage.js @ 48:c979c4d0932b
Little fixes for strict mode compatibility.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Sat, 19 Mar 2011 14:57:13 +0100 |
parents | 0d3f18bb1d36 |
children | c2c9c06d6e9d |
comparison
equal
deleted
inserted
replaced
47:0d3f18bb1d36 | 48:c979c4d0932b |
---|---|
152 var affil = storage.getAffiliation(JID.toBare(to), nodeID); | 152 var affil = storage.getAffiliation(JID.toBare(to), nodeID); |
153 if (affil != 'super-owner' && affil != 'owner') | 153 if (affil != 'super-owner' && affil != 'owner') |
154 return makeError(response, errors.forbidden.n); | 154 return makeError(response, errors.forbidden.n); |
155 | 155 |
156 var e = false; | 156 var e = false; |
157 for (i in request.children) { | 157 for (var i in request.children) { |
158 var jid = request.children[i].getAttribute('jid'); | 158 var jid = request.children[i].getAttribute('jid'); |
159 var affiliation = request.children[i].getAttribute('affiliation'); | 159 var affiliation = request.children[i].getAttribute('affiliation'); |
160 | 160 |
161 var set = storage.setAffiliation(nodeID, jid, affiliation); | 161 var set = storage.setAffiliation(nodeID, jid, affiliation); |
162 if (typeof set == 'number') | 162 if (typeof set == 'number') |