mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Send server->channel notices to the relevant channel
This commit is contained in:
parent
53b7c46e69
commit
38c0c343c3
1 changed files with 7 additions and 2 deletions
|
@ -51,8 +51,13 @@ module.exports = function (irc, network) {
|
|||
return Helper.compareHostmask(entry, data);
|
||||
});
|
||||
|
||||
// Server messages go to server window, no questions asked
|
||||
if (data.from_server) {
|
||||
// Server messages that aren't targeted at a channel go to the server window
|
||||
if (
|
||||
data.from_server &&
|
||||
(!data.target ||
|
||||
!network.getChannel(data.target) ||
|
||||
network.getChannel(data.target).type !== Chan.Type.CHANNEL)
|
||||
) {
|
||||
chan = network.channels[0];
|
||||
from = chan.getUser(data.nick);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue