lib/irc: make isHighlight operate on messages
Makes it easier to re-use elsewhere.
This commit is contained in:
parent
11660e4409
commit
917b348992
2 changed files with 10 additions and 2 deletions
|
@ -291,7 +291,7 @@ export default class App extends Component {
|
|||
var text = msg.params[1];
|
||||
|
||||
var kind;
|
||||
if (msg.prefix.name != this.client.nick && irc.isHighlight(text, this.client.nick)) {
|
||||
if (irc.isHighlight(msg, this.client.nick)) {
|
||||
msgUnread = Unread.HIGHLIGHT;
|
||||
kind = "highlight";
|
||||
} else if (target == this.client.nick) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue