Skip to content

Commit

Permalink
Merge pull request #54 from robotnic/master
Browse files Browse the repository at this point in the history
get.role bug issues/53
  • Loading branch information
lloydwatkin committed Jan 20, 2015
2 parents 393e05f + 21149ac commit 22fb0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/multi-user-chat.js
Expand Up @@ -349,7 +349,7 @@ MultiUserChat.prototype.getRole = function(data, callback) {
if (!callback) return self.manager._getLogger().error('No callback provided')
if (stanza.attrs.type === 'error')
return callback(self._parseError(stanza), null)
var items = stanza.getChild('query', this.NS_ADMIN)
var items = stanza.getChild('query', self.NS_ADMIN)
.getChildren('item')
var results = []
items.forEach(function(item) {
Expand Down

0 comments on commit 22fb0e9

Please sign in to comment.