Merge pull request #2510 from Jay2k1/ctcp-unread-counter
Make CTCP requests/responses increase unread counter
This commit is contained in:
commit
cd55e7bb2a
@ -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}));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user