From cbbd98a177f8ce46ae0211e889c738ae205dd285 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 16 Dec 2013 18:25:25 +0100 Subject: [PATCH] undefined, not null --- muc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);