1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
18 #include "inspircd_config.h"
21 void Delete(char* str,int pos)
27 strcat(str,moo+pos+1);
30 void Insert(char* substr,char* str,int pos)
34 strcpy(str,a.c_str());
40 bool match2(char* literal,char* mask)
49 if ((strstr(mask,"*")==0) && (strlen(literal) != strlen(mask)))
53 while (I < strlen(mask))
55 if (I2 >= strlen(literal))
58 if ((mask[I]=='*') && (MWC==0))
64 while (strlen(mask)<255)
82 if (mask[I] != literal[I2])
89 if (strlen(literal)==strlen(mask))
94 bool match(const char* literal, const char* mask)
99 strncpy(L,literal,10240);
100 strncpy(M,mask,10240);