Track EXCEPTS and INVEX modes
parent
09cd9a300f
commit
edd8855418
2
chat.h
2
chat.h
|
@ -93,6 +93,8 @@ extern struct Network {
|
||||||
char *paramModes;
|
char *paramModes;
|
||||||
char *setParamModes;
|
char *setParamModes;
|
||||||
char *channelModes;
|
char *channelModes;
|
||||||
|
char excepts;
|
||||||
|
char invex;
|
||||||
} network;
|
} network;
|
||||||
|
|
||||||
extern struct Self {
|
extern struct Self {
|
||||||
|
|
4
handle.c
4
handle.c
|
@ -228,6 +228,10 @@ static void handleReplyISupport(struct Message *msg) {
|
||||||
set(&network.paramModes, strsep(&msg->params[i], ","));
|
set(&network.paramModes, strsep(&msg->params[i], ","));
|
||||||
set(&network.setParamModes, strsep(&msg->params[i], ","));
|
set(&network.setParamModes, strsep(&msg->params[i], ","));
|
||||||
set(&network.channelModes, 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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue