diff --git a/muc.js b/muc.js index 4e26763637..df37cad43d 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);