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

diff --git a/NEWS b/NEWS
index dcd6fd8..ff0a30a 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
-               REMOVE, MAP, OVERRIDE and SILENCE
+               REMOVE, MAP, OVERRIDE, VBANLIST 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 5194ac2..1237cd5 100644 (file)
@@ -90,6 +90,9 @@ char *network_info_string(struct network_info *info)
        if (info->watch != 0)
                fs = g_list_append(fs, g_strdup_printf("WATCH=%d", info->watch));
 
+       if (info->vbanlist)
+               fs = g_list_append(fs, "VBANLIST");
+
        if (info->operoverride)
                fs = g_list_append(fs, "OVERRIDE");
 
@@ -290,6 +293,8 @@ void network_info_parse(struct network_info *info, const char *parameter)
                info->topiclen = atoi(val);
        } else if (!g_strcasecmp(key, "WATCH")) {
                info->watch = atoi(val);
+       } else if (!g_strcasecmp(key, "VBANLIST")) {
+               info->vbanlist = TRUE;
        } else if (!g_strcasecmp(key, "MAXPARA")) {
                info->maxpara = atoi(val);
        } else if (!g_strcasecmp(key, "MAXCHANNELS")) {
index 597c5fe..2a1e84c 100644 (file)
@@ -210,14 +210,17 @@ struct network_info
        /* Number of watches allowed */
        gint watch;
 
-       /* Server supports /fpart of /remove */
+       /* Server supports /fpart or /remove command */
        gboolean remove;
 
-       /* Server supports /map */
+       /* Server supports /map command */
        gboolean map;
 
        /* Server supports operoverride */
        gboolean operoverride;
+
+       /* Server supports vbanlist */
+       gboolean vbanlist;
 };
 
 G_MODULE_EXPORT char *network_info_string(struct network_info *info);