Parse all CTCP messages

We display them nicely, however we never reply to them.
This commit is contained in:
Simon Ser 2020-08-13 16:04:39 +02:00
parent 012b9f515a
commit bce216b7fb
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 36 additions and 7 deletions

View file

@ -304,7 +304,7 @@ export default class App extends Component {
msgUnread = Unread.MESSAGE;
}
if (msgUnread == Unread.HIGHLIGHT && window.Notification && Notification.permission === "granted" && !isDelivered) {
if (msgUnread == Unread.HIGHLIGHT && window.Notification && Notification.permission === "granted" && !isDelivered && !irc.parseCTCP(msg)) {
var title = "New " + kind + " from " + msg.prefix.name;
if (this.isChannel(target)) {
title += " in " + target;