Detect highlights

This commit is contained in:
Simon Ser committed 2020-06-29 11:08:47 +02:00
1 parent ed6dccbb58
commit abece1e3fd
4 files changed
+55 -1

No files matched your search

+6 -1
View File
@@ -168,7 +168,12 @@ export default class App extends Component {
var msgUnread = Unread.NONE;
if (msg.command == "PRIVMSG" || msg.command == "NOTICE") {
msgUnread = Unread.MESSAGE;
var text = msg.params[1];
if (msg.prefix.name != this.client.nick && irc.isHighlight(text, this.client.nick)) {
msgUnread = Unread.HIGHLIGHT;
} else {
msgUnread = Unread.MESSAGE;
}
}
if (msg.prefix.name != this.client.nick && msg.command != "PART") {