diff --git a/lib/client.js b/lib/client.js index 6a49de2..61b37a2 100644 --- a/lib/client.js +++ b/lib/client.js @@ -5,6 +5,7 @@ import * as irc from "./irc.js"; const permanentCaps = [ "away-notify", "batch", + "chghost", "echo-message", "invite-notify", "labeled-response", diff --git a/state.js b/state.js index 372bcd7..ff70024 100644 --- a/state.js +++ b/state.js @@ -401,6 +401,15 @@ export const State = { let who = { ...buf.who, realname: msg.params[0] }; return { who }; }); + case "CHGHOST": + return updateBuffer(msg.prefix.name, (buf) => { + let who = { + ...buf.who, + username: msg.params[0], + hostname: msg.params[1], + }; + return { who }; + }); case "AWAY": let awayMessage = msg.params[0];