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

diff --git a/NEWS b/NEWS
index 1cba296..ff5d1be 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 and SILENCE
+               REMOVE, MAP 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 54c6e67..da57a24 100644 (file)
@@ -75,6 +75,9 @@ char *network_info_string(struct network_info *info)
        if (info->forced_nick_changes)
                fs = g_list_append(fs, g_strdup("FNC"));
 
+       if (info->map)
+               fs = g_list_append(fs, "MAP");
+
        if (info->charset != NULL)
                fs = g_list_append(fs, g_strdup_printf("CHARSET=%s", info->charset));
 
@@ -296,6 +299,8 @@ void network_info_parse(struct network_info *info, const char *parameter)
                info->maxmodes = atoi(val);
        } else if (!g_strcasecmp(key, "WALLCHOPS")) {
                info->wallchops = TRUE;
+       } else if (!g_strcasecmp(key, "MAP")) {
+               info->map = TRUE;
        } else if (!g_strcasecmp(key, "WALLVOICES")) {
                info->wallvoices = TRUE;
        } else if (!g_strcasecmp(key, "RFC2812")) {
index 1160432..8817827 100644 (file)
@@ -212,6 +212,9 @@ struct network_info
 
        /* Server supports /fpart of /remove */
        gboolean remove;
+
+       /* Server supports /map */
+       gboolean map;
 };
 
 G_MODULE_EXPORT char *network_info_string(struct network_info *info);