Differentiate WALLOPS from NOTICE
This commit is contained in:
parent
aa310fe877
commit
a2d23810bf
@ -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;
|
||||
|
@ -79,6 +79,7 @@ Msg.Type = {
|
||||
WHOIS: "whois",
|
||||
RAW: "raw",
|
||||
PLUGIN: "plugin",
|
||||
WALLOPS: "wallops",
|
||||
};
|
||||
|
||||
module.exports = Msg;
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user