Parse ISUPPORT tokens in client

This commit is contained in:
Simon Ser 2021-05-11 16:03:16 +02:00
parent e242d5222e
commit 305ffb569c
2 changed files with 7 additions and 4 deletions

View file

@ -514,11 +514,8 @@ export default class App extends Component {
this.setBufferState({ network: netID, name: SERVER_BUFFER }, { serverInfo });
break;
case irc.RPL_ISUPPORT:
var tokens = msg.params.slice(1, -1);
this.setNetworkState(netID, (network) => {
var isupport = new Map(network.isupport);
irc.parseISUPPORT(tokens, isupport);
return { isupport };
return { isupport: new Map(client.isupport) };
});
break;
case irc.RPL_NOTOPIC: