Send server->channel notices to the relevant channel
This commit is contained in:
parent
53b7c46e69
commit
38c0c343c3
@ -51,8 +51,13 @@ module.exports = function (irc, network) {
|
|||||||
return Helper.compareHostmask(entry, data);
|
return Helper.compareHostmask(entry, data);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Server messages go to server window, no questions asked
|
// Server messages that aren't targeted at a channel go to the server window
|
||||||
if (data.from_server) {
|
if (
|
||||||
|
data.from_server &&
|
||||||
|
(!data.target ||
|
||||||
|
!network.getChannel(data.target) ||
|
||||||
|
network.getChannel(data.target).type !== Chan.Type.CHANNEL)
|
||||||
|
) {
|
||||||
chan = network.channels[0];
|
chan = network.channels[0];
|
||||||
from = chan.getUser(data.nick);
|
from = chan.getUser(data.nick);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user