Update of /cvsroot/irc-dev/ipv6/ircd
In directory usw-pr-cvs1:/tmp/cvs-serv2941/ircd
Modified Files:
channel.c
Log Message:
INET6.10 by NiKoLaS
Index: channel.c
===================================================================
RCS file: /cvsroot/irc-dev/ipv6/ircd/channel.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- channel.c 16 Sep 2002 14:07:32 -0000 1.4
+++ channel.c 16 Sep 2002 16:22:01 -0000 1.5
@@ -1046,6 +1046,7 @@
*
* 1) xxx -> nick!*@*
* 2) xxx.xxx -> *!*@host
+ * 2) xxx:xxx -> *!*@ip IPv6
* 3) xxx!yyy -> nick!user@*
* 4) xxx@yyy -> *!user@host
* 5) xxx!yyy@zzz -> nick!user@host
@@ -1077,9 +1078,9 @@
user = mask;
host = ++ptr;
}
- else if (*ptr == '.')
+ else if (*ptr == '.' || *ptr == ':')
{
- /* Case 2: Found last '.' (without finding a '!' or '@' yet) */
+ /* Case 2: Found last '.' o ':' (without finding a '!' or '@' yet) */
last_dot = ptr;
continue;
}
@@ -1381,7 +1382,7 @@
for (p = *parv; *p; p++)
{
if ((*p != 33) && (*p != 42) && (*p != 45) && (*p != 46) &&
- !((*p > 62) && (*p < 127)) && !((*p > 47) && (*p < 58)))
+ !((*p > 62) && (*p < 127)) && !((*p > 47) && (*p < 59)))
{
sendto_one(cptr, err_str(ERR_INVALIDBANMASK), me.name, cptr->name,
chptr->chname, *parv);
|