undefined, not null

This commit is contained in:
Philipp Hancke 2013-12-16 18:25:25 +01:00
parent 9ceaec1378
commit a2916176cb
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'}); 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); join.c('password').t(password);
} }
this.connection.send(join); this.connection.send(join);