diff --git a/muc.js b/muc.js index 4e2676363..df37cad43 100644 --- a/muc.js +++ b/muc.js @@ -23,7 +23,7 @@ Strophe.addConnectionPlugin('emuc', { } var join = $pres({to: this.myroomjid }).c('x', {xmlns: 'http://jabber.org/protocol/muc'}); - if (password !== null) { + if (password !== undefined) { join.c('password').t(password); } this.connection.send(join);