aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-07 03:37:59 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-07 03:43:42 +0200
commit0553ef857ffb4d93e2078294aaaf6010d515a264 (patch)
tree1f228807fb26fe6229ec3a89c859409a8bf311eb /degesch.c
parent7bcf2a066b2c0838dc2da4af415ec80321732118 (diff)
downloadxK-0553ef857ffb4d93e2078294aaaf6010d515a264.tar.gz
xK-0553ef857ffb4d93e2078294aaaf6010d515a264.tar.xz
xK-0553ef857ffb4d93e2078294aaaf6010d515a264.zip
degesch: enable NAMESX if supported by server
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 7d1c074..933b5c8 100644
--- a/degesch.c
+++ b/degesch.c
@@ -5052,6 +5052,10 @@ irc_handle_rpl_isupport (struct server *s, const struct irc_message *msg)
irc_handle_isupport_statusmsg (s, value_unescaped.str);
else if (!strcmp (param, "CHANMODES"))
irc_handle_isupport_chanmodes (s, value_unescaped.str);
+ else if (!strcmp (param, "NAMESX"))
+ // We support receiving multiple mode chars in RPL_NAMREPLY
+ // TODO: get rid of this and instead implement CAP negotiation
+ irc_send (s, "PROTOCTL NAMESX");
// TODO: also parse MODES, TARGMAX and make use of them
// to split client commands as necessary