diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-06 19:26:42 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-06 19:26:42 +0000 |
| commit | de99f898941afa524bde2ac2442b54a673750c5f (patch) | |
| tree | 02d15aa8f9b656921f3c121ae330fa72efe12225 /src/servers.c | |
| parent | 308070e01971b0cfaf77de20011f48ce4d6b5a1c (diff) | |
Parse CAPAB from the server to determin what modes we know about
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2781 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/servers.c')
| -rw-r--r-- | src/servers.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/servers.c b/src/servers.c index fca229d22..474f4f3e1 100644 --- a/src/servers.c +++ b/src/servers.c @@ -460,49 +460,6 @@ void do_squit(const char *source, int ac, const char **av) /*************************************************************************/ /** - * Handle parsing the CAPAB/PROTOCTL messages - * @param ac Number of arguments in av - * @param av Agruments - * @return void - */ -void capab_parse(int ac, const char **av) -{ - int i; - int j; - char *s, *tmp; - - const char *temp; - - for (i = 0; i < ac; i++) { - temp = av[i]; - - s = myStrGetToken(temp, '=', 0); - tmp = myStrGetTokenRemainder(temp, '=', 1); - - if (!s) - continue; - - for (j = 0; capab_info[j].token; j++) { - if (stricmp(s, capab_info[j].token) == 0) - uplink_capab |= capab_info[j].flag; - /* Special cases */ - if ((stricmp(s, "NICKIP") == 0) && !ircd->nickip) - ircd->nickip = 1; - if ((stricmp(s, "CHANMODES") == 0) && tmp) - ircd->chanmodes = sstrdup(tmp); - if ((stricmp(s, "NICKCHARS") == 0) && tmp) - ircd->nickchars = sstrdup(tmp); - } - - delete [] s; - if (tmp) - delete [] tmp; - } -} - -/*************************************************************************/ - -/** * Search the uline servers array to find out if the server that just set the * mode is in our uline list * @param server Server Setting the mode |
