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="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);
});