X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/ff12cc94790de2e87e78ee7aa378f21fa415d73c..8efff56fdf9f4ce4a3968c74162fed9d8d45c51a:/ircd/extban.c diff --git a/ircd/extban.c b/ircd/extban.c index 8890fcca..f99d3fca 100644 --- a/ircd/extban.c +++ b/ircd/extban.c @@ -1,5 +1,5 @@ /* - * charybdis: A slightly useful ircd. + * Solanum: a slightly advanced ircd * extban.c: extended ban types ($type:data) * * Copyright (C) 2006 charybdis development team @@ -18,14 +18,11 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA - * - * $Id: extban.c 1389 2006-05-20 19:19:00Z nenolod $ */ #include "stdinc.h" #include "channel.h" #include "client.h" -#include "common.h" ExtbanFunc extban_table[256] = { NULL }; @@ -44,7 +41,7 @@ match_extban(const char *banstr, struct Client *client_p, struct Channel *chptr, invert = 1; p++; } - f = extban_table[(unsigned char) ToLower(*p)]; + f = extban_table[(unsigned char) irctolower(*p)]; if (*p != '\0') { p++; @@ -76,7 +73,7 @@ valid_extban(const char *banstr, struct Client *client_p, struct Channel *chptr, p = banstr + 1; if (*p == '~') p++; - f = extban_table[(unsigned char) ToLower(*p)]; + f = extban_table[(unsigned char) irctolower(*p)]; if (*p != '\0') { p++; @@ -101,7 +98,7 @@ get_extban_string(void) j = 0; for (i = 1; i < 256; i++) - if (i == ToLower(i) && extban_table[i]) + if (i == irctolower(i) && extban_table[i]) e[j++] = i; e[j] = 0; return e;