mirror of
https://github.com/thelounge/thelounge
synced 2024-11-11 07:04:18 +00:00
parent
84107ab516
commit
7ef88523ca
1 changed files with 10 additions and 0 deletions
|
@ -49,6 +49,16 @@ module.exports = function(irc, network) {
|
|||
"ctcp request",
|
||||
_.throttle(
|
||||
(data) => {
|
||||
// Ignore echoed ctcp requests that aren't targeted at us
|
||||
// See https://github.com/kiwiirc/irc-framework/issues/225
|
||||
if (
|
||||
data.nick === irc.user.nick &&
|
||||
data.nick !== data.target &&
|
||||
network.irc.network.cap.isEnabled("echo-message")
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
const shouldIgnore = network.ignoreList.some(function(entry) {
|
||||
return Helper.compareHostmask(entry, data);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue