瀏覽代碼

undefined, not null

master
Philipp Hancke 11 年之前
父節點
當前提交
cbbd98a177
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      muc.js

+ 1
- 1
muc.js 查看文件

23
         }
23
         }
24
 
24
 
25
         var join = $pres({to: this.myroomjid }).c('x', {xmlns: 'http://jabber.org/protocol/muc'});
25
         var join = $pres({to: this.myroomjid }).c('x', {xmlns: 'http://jabber.org/protocol/muc'});
26
-        if (password !== null) {
26
+        if (password !== undefined) {
27
             join.c('password').t(password);
27
             join.c('password').t(password);
28
         }
28
         }
29
         this.connection.send(join);
29
         this.connection.send(join);

Loading…
取消
儲存