зеркало из https://github.com/mozilla/pjs.git
Bug 190747 - chatzilla shouldn't open a window until the server sends a JOIN
patch by kazhik@mozilla.gr.jp r=rginda chatzilla only
This commit is contained in:
Родитель
6929793b0e
Коммит
8253a1b529
|
@ -1994,12 +1994,6 @@ function cli_ijoin (e)
|
|||
|
||||
e.channel = e.server.addChannel (name);
|
||||
e.channel.join(key);
|
||||
if (!("messages" in e.channel))
|
||||
{
|
||||
e.channel.display (getMsg("cli_ijoinMsg3", e.channel.unicodeName),
|
||||
"INFO");
|
||||
}
|
||||
setCurrentObject(e.channel);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -3276,6 +3270,11 @@ function my_cjoin (e)
|
|||
|
||||
if (userIsMe (e.user))
|
||||
{
|
||||
if (!("messages" in this))
|
||||
{
|
||||
this.display (getMsg("cli_ijoinMsg3", this.unicodeName),
|
||||
"INFO");
|
||||
}
|
||||
this.display (getMsg("my_cjoinMsg", e.channel.unicodeName), "JOIN",
|
||||
e.server.me, this);
|
||||
setCurrentObject(this);
|
||||
|
|
Загрузка…
Ссылка в новой задаче