From 7f2cc0eacb31ac96ab514cac14b701b7f457c1a1 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 19 Nov 2015 23:10:36 -0600 Subject: [PATCH] Revert "supported: remove TARGMAX, nothing really uses it, and the information conveyed is useless anyway" This reverts commit ff2f68e617bb5bcaddfdaa5e4e29348a95d147ff. --- src/supported.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/supported.c b/src/supported.c index edc4af89..1cd59213 100644 --- a/src/supported.c +++ b/src/supported.c @@ -276,6 +276,17 @@ isupport_maxlist(const void *ptr) return result; } +static const char * +isupport_targmax(const void *ptr) +{ + static char result[200]; + + rb_snprintf(result, sizeof result, "NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:%d,NOTICE:%d,ACCEPT:,MONITOR:", + ConfigFileEntry.max_targets, + ConfigFileEntry.max_targets); + return result; +} + static const char * isupport_extban(const void *ptr) { @@ -328,6 +339,7 @@ init_isupport(void) add_isupport("CNOTICE", isupport_string, ""); add_isupport("DEAF", isupport_umode, "D"); add_isupport("FNC", isupport_string, ""); + add_isupport("TARGMAX", isupport_targmax, NULL); add_isupport("EXTBAN", isupport_extban, NULL); add_isupport("WHOX", isupport_string, ""); add_isupport("CLIENTVER", isupport_string, "3.0");