Add support for RPL_ISUPPORT

This commit is contained in:
Simon Ser 2021-01-22 11:34:04 +01:00
parent 4acacc1f22
commit b3f8b0c97d
2 changed files with 28 additions and 0 deletions

View file

@ -450,6 +450,7 @@ export default class App extends Component {
networks.set(netID, {
id: netID,
status: Status.CONNECTING,
isupport: new Map(),
});
return { networks };
});
@ -548,6 +549,14 @@ 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 };
});
break;
case irc.RPL_NOTOPIC:
var channel = msg.params[1];