Add support for extended-join

This commit is contained in:
Simon Ser
2021-09-21 14:29:31 +02:00
parent 010009e3e0
commit 11878aaaa9
3 changed files with 23 additions and 2 deletions

View File

@@ -410,6 +410,13 @@ export const State = {
if (msg.prefix.host) {
who.hostname = msg.prefix.host;
}
if (msg.params.length > 2) {
who.account = msg.params[1];
if (who.account === "*") {
who.account = null;
}
who.realname = msg.params[2];
}
update = updateUser(msg.prefix.name, who);
state = { ...state, ...update };