mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Pretty-print MOTD
This commit is contained in:
parent
8123ff3844
commit
e080e87cb7
3 changed files with 7 additions and 1 deletions
|
@ -121,6 +121,10 @@ class LogLine extends Component {
|
||||||
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic))}
|
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic))}
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
|
case irc.RPL_MOTD:
|
||||||
|
lineClass = "motd";
|
||||||
|
content = msg.params[1];
|
||||||
|
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";
|
||||||
|
|
|
@ -17,6 +17,8 @@ export const RPL_TOPICWHOTIME = "333";
|
||||||
export const RPL_WHOREPLY = "352";
|
export const RPL_WHOREPLY = "352";
|
||||||
export const RPL_NAMREPLY = "353";
|
export const RPL_NAMREPLY = "353";
|
||||||
export const RPL_ENDOFNAMES = "366";
|
export const RPL_ENDOFNAMES = "366";
|
||||||
|
export const RPL_MOTD = "372";
|
||||||
|
export const RPL_MOTDSTART = "375";
|
||||||
export const RPL_ENDOFMOTD = "376";
|
export const RPL_ENDOFMOTD = "376";
|
||||||
export const ERR_NOSUCHNICK = "401";
|
export const ERR_NOSUCHNICK = "401";
|
||||||
export const ERR_NOMOTD = "422";
|
export const ERR_NOMOTD = "422";
|
||||||
|
|
|
@ -329,7 +329,7 @@ details summary {
|
||||||
#buffer .logline-list {
|
#buffer .logline-list {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
#buffer .talk {
|
#buffer .talk, #buffer .motd {
|
||||||
color: var(--main-color);
|
color: var(--main-color);
|
||||||
}
|
}
|
||||||
#buffer .error {
|
#buffer .error {
|
||||||
|
|
Loading…
Reference in a new issue