Merge pull request #4264 from BradleyShaw/differentiate-wallops

Differentiate WALLOPS from NOTICE
This commit is contained in:
Max Leiter 2021-06-28 21:48:05 -07:00 committed by GitHub
commit a42a1fc6a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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="notice"] .time,
#chat .msg[data-type="wallops"] .time,
#chat .msg[data-type="notice"] .content, #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; color: #0074d9;
} }
@ -1516,6 +1519,10 @@ textarea.input {
content: "Notice: "; content: "Notice: ";
} }
#chat .msg[data-type="wallops"] .from .user::before {
content: "Wallops: ";
}
#chat .msg[data-type="error"], #chat .msg[data-type="error"],
#chat .msg[data-type="error"] .from { #chat .msg[data-type="error"] .from {
color: #e74c3c; color: #e74c3c;

View File

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

View File

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