mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Fix TypeError in isHighlight
TypeError: msg.prefix is null
This commit is contained in:
parent
6491f7e915
commit
e9d90d4927
1 changed files with 2 additions and 1 deletions
|
@ -245,7 +245,8 @@ export function isHighlight(msg, nick) {
|
|||
if (msg.command != "PRIVMSG" && msg.command != "NOTICE") {
|
||||
return false;
|
||||
}
|
||||
if (msg.prefix.name == nick) {
|
||||
// TODO: case-mapping handling
|
||||
if (msg.prefix && msg.prefix.name == nick) {
|
||||
return false; // Our own messages aren't highlights
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue