forked from CringeStudios/gamja
components/buffer: pretty-print RPL_CHANNELMODEIS and RPL_CREATIONTIME
This commit is contained in:
parent
19ee5553f6
commit
4577f0a27f
@ -202,6 +202,13 @@ class LogLine extends Component {
|
|||||||
content = html`You have no user mode`;
|
content = html`You have no user mode`;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case irc.RPL_CHANNELMODEIS:
|
||||||
|
content = html`Channel mode is ${msg.params.slice(2).join(" ")}`;
|
||||||
|
break;
|
||||||
|
case irc.RPL_CREATIONTIME:
|
||||||
|
let date = new Date(parseInt(msg.params[2], 10) * 1000);
|
||||||
|
content = html`Channel was created on ${date.toLocaleString()}`;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (irc.isError(msg.command) && msg.command != irc.ERR_NOMOTD) {
|
if (irc.isError(msg.command) && msg.command != irc.ERR_NOMOTD) {
|
||||||
lineClass = "error";
|
lineClass = "error";
|
||||||
|
@ -13,7 +13,6 @@ export const RPL_ENDOFWHOIS = "318";
|
|||||||
export const RPL_WHOISCHANNELS = "319";
|
export const RPL_WHOISCHANNELS = "319";
|
||||||
export const RPL_ENDOFWHO = "315";
|
export const RPL_ENDOFWHO = "315";
|
||||||
export const RPL_CHANNELMODEIS = "324";
|
export const RPL_CHANNELMODEIS = "324";
|
||||||
export const RPL_CREATIONTIME = "329";
|
|
||||||
export const RPL_NOTOPIC = "331";
|
export const RPL_NOTOPIC = "331";
|
||||||
export const RPL_TOPIC = "332";
|
export const RPL_TOPIC = "332";
|
||||||
export const RPL_TOPICWHOTIME = "333";
|
export const RPL_TOPICWHOTIME = "333";
|
||||||
@ -42,6 +41,7 @@ export const ERR_YOUREBANNEDCREEP = "465";
|
|||||||
// RFC 2812
|
// RFC 2812
|
||||||
export const ERR_UNAVAILRESOURCE = "437";
|
export const ERR_UNAVAILRESOURCE = "437";
|
||||||
// Other
|
// Other
|
||||||
|
export const RPL_CREATIONTIME = "329";
|
||||||
export const RPL_QUIETLIST = "728";
|
export const RPL_QUIETLIST = "728";
|
||||||
export const RPL_ENDOFQUIETLIST = "729";
|
export const RPL_ENDOFQUIETLIST = "729";
|
||||||
// IRCv3 MONITOR: https://ircv3.net/specs/extensions/monitor
|
// IRCv3 MONITOR: https://ircv3.net/specs/extensions/monitor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user