Make CTCP requests/responses increase unread counter

This commit is contained in:
Jay2k1 2018-06-04 00:47:30 +02:00 committed by GitHub
parent f1ad8fa8f2
commit 5d748a59cc
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}));
}; };