undefined, not null

This commit is contained in:
Philipp Hancke 2013-12-16 18:25:25 +01:00 committed by Yana Stamcheva
parent ad7fdb2a34
commit cbbd98a177
1 changed files with 1 additions and 1 deletions

2
muc.js
View File

@ -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);