mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
parent
a51be5037d
commit
0137a95268
2 changed files with 10 additions and 0 deletions
|
@ -5,6 +5,7 @@ import * as irc from "./irc.js";
|
||||||
const permanentCaps = [
|
const permanentCaps = [
|
||||||
"away-notify",
|
"away-notify",
|
||||||
"batch",
|
"batch",
|
||||||
|
"chghost",
|
||||||
"echo-message",
|
"echo-message",
|
||||||
"invite-notify",
|
"invite-notify",
|
||||||
"labeled-response",
|
"labeled-response",
|
||||||
|
|
9
state.js
9
state.js
|
@ -401,6 +401,15 @@ export const State = {
|
||||||
let who = { ...buf.who, realname: msg.params[0] };
|
let who = { ...buf.who, realname: msg.params[0] };
|
||||||
return { who };
|
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":
|
case "AWAY":
|
||||||
let awayMessage = msg.params[0];
|
let awayMessage = msg.params[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue