]> jfr.im git - solanum.git/blobdiff - ircd/extban.c
Merge pull request #341 from ophion-project/upstream/modularize-regonlymsg
[solanum.git] / ircd / extban.c
index 40c6dd7d6885fa3be12e06cde269198904218082..69603f1404ad20b3df7bf98339f940c31520dff8 100644 (file)
@@ -23,7 +23,6 @@
 #include "stdinc.h"
 #include "channel.h"
 #include "client.h"
-#include "common.h"
 
 ExtbanFunc extban_table[256] = { NULL };
 
@@ -42,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++;
@@ -74,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++;
@@ -99,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;