mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
Bug 317001 - Make errors with channel joins go to the right channel view if possible.
ChatZilla only. r=silver p=gijskruitbosch+bugs@gmail.com (Gijs Kruitbosch)
This commit is contained in:
parent
12f49379e7
commit
ac2a2fda27
@ -917,6 +917,10 @@ function my_unknown (e)
|
||||
e.channel = new CIRCChannel(e.server, null, e.params[0]);
|
||||
}
|
||||
|
||||
var targetDisplayObj = this;
|
||||
if (e.channel && ("messages" in e.channel))
|
||||
targetDisplayObj = e.channel;
|
||||
|
||||
// Check for /knock support for the +i message.
|
||||
if (((e.code == 471) || (e.code == 473) || (e.code == 475)) &&
|
||||
("knock" in e.server.servCmds))
|
||||
@ -925,12 +929,12 @@ function my_unknown (e)
|
||||
"knock " + e.channel.unicodeName];
|
||||
msg = getMsg("msg.irc." + e.code + ".knock", args, "");
|
||||
client.munger.entries[".inline-buttons"].enabled = true;
|
||||
this.display(msg);
|
||||
targetDisplayObj.display(msg);
|
||||
client.munger.entries[".inline-buttons"].enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.display(msg);
|
||||
targetDisplayObj.display(msg);
|
||||
}
|
||||
|
||||
if (e.channel)
|
||||
|
Loading…
Reference in New Issue
Block a user