From edd88554184ad10a6d3815a07d8d62eac218a2b3 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 16 Feb 2020 18:31:50 -0500 Subject: Track EXCEPTS and INVEX modes --- chat.h | 2 ++ handle.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/chat.h b/chat.h index b14a65a..adde642 100644 --- a/chat.h +++ b/chat.h @@ -93,6 +93,8 @@ extern struct Network { char *paramModes; char *setParamModes; char *channelModes; + char excepts; + char invex; } network; extern struct Self { diff --git a/handle.c b/handle.c index d4f615e..6de7fd0 100644 --- a/handle.c +++ b/handle.c @@ -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'); } } } -- cgit 1.4.0