Treat server broadcasts as highlights

This commit is contained in:
Simon Ser committed 2021-06-23 19:52:45 +02:00
1 parent 095006e961
commit bc05fd5c11
2 files changed
+10 -1

No files matched your search

+7
View File
@@ -288,6 +288,13 @@ export function isHighlight(msg, nick, cm) {
}
}
export function isServerBroadcast(msg) {
if (msg.command != "PRIVMSG" && msg.command != "NOTICE") {
return false;
}
return msg.params[0].startsWith("$");
}
export function isError(cmd) {
if (cmd >= "400" && cmd <= "568") {
return true;