Skip to content

Commit

Permalink
[#292 followup] Fix a regression in /unban.
Browse files Browse the repository at this point in the history
Accidentally calling a non-existent strophe function.
  • Loading branch information
cburschka committed Dec 28, 2015
1 parent d009399 commit e09a14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/core/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ var chat = {
*/
unban: function(arg) {
arg = chat.parseArgs(arg);
arg.jid = Strophe.getBareJid(arg.jid || arg[0][0]);
arg.jid = Strophe.getBareJidFromJid(arg.jid || arg[0][0]);

xmpp.getUsers({affiliation: 'outcast'}, function(stanza) {
if ($('item', stanza).is(function() { return $(this).attr('jid') === arg.jid; }))
Expand Down

0 comments on commit e09a14b

Please sign in to comment.