mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
state: add account to server
This commit is contained in:
parent
51bf8da3d6
commit
0af40a1a8e
1 changed files with 5 additions and 0 deletions
5
state.js
5
state.js
|
@ -255,6 +255,7 @@ export const State = {
|
|||
status: ServerStatus.DISCONNECTED,
|
||||
isupport: new Map(),
|
||||
users: new irc.CaseMapMap(null, irc.CaseMapping.RFC1459),
|
||||
account: null,
|
||||
});
|
||||
return [id, { servers }];
|
||||
},
|
||||
|
@ -345,6 +346,10 @@ export const State = {
|
|||
};
|
||||
}),
|
||||
};
|
||||
case irc.RPL_LOGGEDIN:
|
||||
return updateServer({ account: msg.params[2] });
|
||||
case irc.RPL_LOGGEDOUT:
|
||||
return updateServer({ account: null });
|
||||
case irc.RPL_NOTOPIC:
|
||||
channel = msg.params[1];
|
||||
return updateBuffer(channel, { topic: null });
|
||||
|
|
Loading…
Reference in a new issue