Track EXCEPTS and INVEX modes

master
C. McEnroe 2020-02-16 18:31:50 -05:00
parent 09cd9a300f
commit edd8855418
2 changed files with 6 additions and 0 deletions

2
chat.h
View File

@ -93,6 +93,8 @@ extern struct Network {
char *paramModes;
char *setParamModes;
char *channelModes;
char excepts;
char invex;
} network;
extern struct Self {

View File

@ -228,6 +228,10 @@ static void handleReplyISupport(struct Message *msg) {
set(&network.paramModes, strsep(&msg->params[i], ","));
set(&network.setParamModes, strsep(&msg->params[i], ","));
set(&network.channelModes, strsep(&msg->params[i], ","));
} else if (!strcmp(key, "EXCEPTS")) {
network.excepts = (msg->params[i] ? msg->params[i][0] : 'e');
} else if (!strcmp(key, "INVEX")) {
network.invex = (msg->params[i] ? msg->params[i][0] : 'I');
}
}
}