From 8b16e56235cd08a363f9dd906178986e4e037723 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 15 Apr 2007 00:22:54 +0200 Subject: [PATCH] Add support for SECURELIST. --- NEWS | 2 +- src/isupport.c | 5 +++++ src/isupport.h | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e317b79..24f99d1 100644 --- a/NEWS +++ b/NEWS @@ -68,7 +68,7 @@ Ctrlproxy 3.0.2 UNRELEASED AWAYLEN, MAXTARGETS, WALLCHOPS, WALLVOICES, RFC2812, PENALTY, FNC, SAFELIST, USERIP, CNOTICE, KNOCK, VCHANNELS, WHOX, CALLERID, ACCEPT, KEYLEN, USERLEN, HOSTLEN, MAXCHANNELLEN, - MAXNICKLEN, DEAF, ELIST, MAXPARA, NAMESX and SILENCE + MAXNICKLEN, DEAF, ELIST, MAXPARA, NAMESX, SECURELIST and SILENCE * Default to binding to 127.0.0.1 if no IP was specified in the listener, instead of 0.0.0.0. diff --git a/src/isupport.c b/src/isupport.c index ff6d606..b87f7d0 100644 --- a/src/isupport.c +++ b/src/isupport.c @@ -177,6 +177,9 @@ char *network_info_string(struct network_info *info) if (info->namesx) fs = g_list_append(fs, "NAMESX"); + if (info->securelist) + fs = g_list_append(fs, "SECURELIST"); + if (info->excepts_mode != '\0') fs = g_list_append(fs, g_strdup_printf("EXCEPTS=%c", info->excepts_mode)); @@ -377,6 +380,8 @@ void network_info_parse(struct network_info *info, const char *parameter) info->charset = g_strdup(val); } else if (!g_strcasecmp(key, "NAMESX")) { info->namesx = TRUE; + } else if (!g_strcasecmp(key, "SECURELIST")) { + info->securelist = TRUE; } else { log_global(LOG_WARNING, "Unknown 005 parameter `%s'", key); } diff --git a/src/isupport.h b/src/isupport.h index 71fa60e..10bd096 100644 --- a/src/isupport.h +++ b/src/isupport.h @@ -201,6 +201,11 @@ struct network_info /* The NAMESX extension is supported by the server. See * http://www.inspircd.org/wiki/NAMESX_Module for details */ gboolean namesx; + + /* This server uses SECURELIST, meaning that LIST can not be + * run 60 seconds within connect. See + * http://www.inspircd.org/wiki/Secure_LIST_Module for details. */ + gboolean securelist; }; G_MODULE_EXPORT char *network_info_string(struct network_info *info); -- 2.34.1