Merge pull request #2510 from Jay2k1/ctcp-unread-counter

Make CTCP requests/responses increase unread counter
This commit is contained in:
Pavel Djundik 2018-06-04 10:51:53 +03:00 committed by GitHub
commit cd55e7bb2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ module.exports = function(irc, network) {
from: chan.getUser(data.nick), from: chan.getUser(data.nick),
ctcpMessage: data.message, ctcpMessage: data.message,
}); });
chan.pushMessage(client, msg); chan.pushMessage(client, msg, true);
}); });
// Limit requests to a rate of one per second max // Limit requests to a rate of one per second max
@ -52,6 +52,6 @@ module.exports = function(irc, network) {
hostmask: data.ident + "@" + data.hostname, hostmask: data.ident + "@" + data.hostname,
ctcpMessage: data.message, ctcpMessage: data.message,
}); });
lobby.pushMessage(client, msg); lobby.pushMessage(client, msg, true);
}, 1000, {trailing: false})); }, 1000, {trailing: false}));
}; };