Detect highlights
This commit is contained in:
parent
ed6dccbb58
commit
abece1e3fd
4 changed files with 55 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue