Add support for REMOVE.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 14 Apr 2007 23:21:46 +0000 (01:21 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 14 Apr 2007 23:21:46 +0000 (01:21 +0200)
NEWS
src/isupport.c
src/isupport.h

diff --git a/NEWS b/NEWS
index 0b25bd6ef60ea69062ed22bd4d1248179357875c..1cba296c6c39514e61c410cedcf93b08da5c5ed7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -71,7 +71,7 @@ Ctrlproxy 3.0.2 UNRELEASED
                FNC, SAFELIST, USERIP, CNOTICE, KNOCK, VCHANNELS, WHOX, CALLERID,
                ACCEPT, KEYLEN, USERLEN, HOSTLEN, MAXCHANNELLEN, 
                MAXNICKLEN, DEAF, ELIST, MAXPARA, NAMESX, SECURELIST, WATCH
-               and SILENCE
+               REMOVE and SILENCE
 
        * Default to binding to 127.0.0.1 if no IP was specified in the 
          listener, instead of 0.0.0.0.
index 046fec940bdd495bf05aa5363e07e5004409c856..54c6e67c38766cbd6cdd9c0550c5c90ea686cb41 100644 (file)
@@ -129,6 +129,9 @@ char *network_info_string(struct network_info *info)
        if (info->penalty)
                fs = g_list_append(fs, g_strdup("PENALTY"));
 
+       if (info->remove)
+               fs = g_list_append(fs, g_strdup("REMOVE"));
+
        if (info->safelist)
                fs = g_list_append(fs, g_strdup("SAFELIST"));
        
@@ -285,6 +288,8 @@ void network_info_parse(struct network_info *info, const char *parameter)
                info->maxchannels = atoi(val);
        } else if (!g_strcasecmp(key, "MAXTARGETS")) {
                info->maxtargets = atoi(val);
+       } else if (!g_strcasecmp(key, "REMOVE")) {
+               info->remove = TRUE;
        } else if (!g_strcasecmp(key, "MAXBANS")) {
                info->maxbans = atoi(val);
        } else if (!g_strcasecmp(key, "MODES")) {
index 90b09a198ae9b37a039c6f5ab94321f7c5636bed..11604327d3cfa0a845dee2c04c866f56c4280dc0 100644 (file)
@@ -209,6 +209,9 @@ struct network_info
 
        /* Number of watches allowed */
        gint watch;
+
+       /* Server supports /fpart of /remove */
+       gboolean remove;
 };
 
 G_MODULE_EXPORT char *network_info_string(struct network_info *info);