Merge pull request #4264 from BradleyShaw/differentiate-wallops
Differentiate WALLOPS from NOTICE
This commit is contained in:
commit
a42a1fc6a2
@ -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