}
private onReplyISupport(message: Message) {
+
// Clear extras
this.state.supportedState.extra = [];
+ // Clear modes
+ this.state.supportedState.channel.modes = {
+ a:'', b:'', c:'', d:''
+ };
+
message.args.forEach((arg) => {
let match;
match = arg.match(/([A-Z]+)=(.*)/);
case 'CHANMODES': {
const values = value.split(',');
const type: ['a', 'b', 'c', 'd'] = ['a', 'b', 'c', 'd'];
- this.state.supportedState.channel.modes = {
- a:'', b:'', c:'', d:''
- };
for (let i = 0; i < type.length; i++) {
this.state.supportedState.channel.modes[type[i]] += values[i];
}