From 2d032259db6ff4906a17f9aaf329e19ccf99e934 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 18 Oct 2021 22:11:14 +0200 Subject: [PATCH] Pretty-print RPL_LOGGEDIN and RPL_LOGGEDOUT --- components/buffer.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/buffer.js b/components/buffer.js index 8677140..a977dbc 100644 --- a/components/buffer.js +++ b/components/buffer.js @@ -194,6 +194,13 @@ class LogLine extends Component { lineClass = "motd"; content = linkify(stripANSI(msg.params[1]), onChannelClick); break; + case irc.RPL_LOGGEDIN: + let account = msg.params[2]; + content = html`You are now authenticated as ${account}`; + break; + case irc.RPL_LOGGEDOUT: + content = html`You are now unauthenticated`; + break; case irc.RPL_UMODEIS: let mode = msg.params[1]; if (mode) {