Differentiate WALLOPS from NOTICE

This commit is contained in:
Bradley Shaw 2021-06-22 11:50:22 +01:00
parent aa310fe877
commit a2d23810bf
No known key found for this signature in database
GPG key ID: 507CB03644778F8B
3 changed files with 10 additions and 2 deletions

View file

@ -1507,8 +1507,11 @@ textarea.input {
}
#chat .msg[data-type="notice"] .time,
#chat .msg[data-type="wallops"] .time,
#chat .msg[data-type="notice"] .content,
#chat .msg[data-type="notice"] .user {
#chat .msg[data-type="wallops"] .content,
#chat .msg[data-type="notice"] .user,
#chat .msg[data-type="wallops"] .user {
color: #0074d9;
}
@ -1516,6 +1519,10 @@ textarea.input {
content: "Notice: ";
}
#chat .msg[data-type="wallops"] .from .user::before {
content: "Wallops: ";
}
#chat .msg[data-type="error"],
#chat .msg[data-type="error"] .from {
color: #e74c3c;

View file

@ -79,6 +79,7 @@ Msg.Type = {
WHOIS: "whois",
RAW: "raw",
PLUGIN: "plugin",
WALLOPS: "wallops",
};
module.exports = Msg;

View file

@ -33,7 +33,7 @@ module.exports = function (irc, network) {
irc.on("wallops", function (data) {
data.from_server = true;
data.type = Msg.Type.NOTICE;
data.type = Msg.Type.WALLOPS;
handleMessage(data);
});