diff --git a/components/buffer.js b/components/buffer.js index 8616cc1..b27673a 100644 --- a/components/buffer.js +++ b/components/buffer.js @@ -194,6 +194,14 @@ class LogLine extends Component { lineClass = "motd"; content = linkify(stripANSI(msg.params[1]), onChannelClick); break; + case irc.RPL_UMODEIS: + let mode = msg.params[1]; + if (mode) { + content = html`Your user mode is ${mode}`; + } else { + content = html`You have no user mode`; + } + break; default: if (irc.isError(msg.command) && msg.command != irc.ERR_NOMOTD) { lineClass = "error"; diff --git a/lib/irc.js b/lib/irc.js index 92204c7..8b88a90 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -4,6 +4,7 @@ export const RPL_YOURHOST = "002"; export const RPL_CREATED = "003"; export const RPL_MYINFO = "004"; export const RPL_ISUPPORT = "005"; +export const RPL_UMODEIS = "221"; export const RPL_WHOISUSER = "311"; export const RPL_WHOISSERVER = "312"; export const RPL_WHOISOPERATOR = "313";