[X2serv-cvs] [CVS] Module x2: Change committed
Brought to you by:
sirvulcan
From: Alex S. <ru...@us...> - 2004-07-05 08:12:32
|
Committer : Alex Schumann <ru...@us...> CVSROOT : /cvsroot/x2serv Module : x2 Commit time: 2004-07-05 08:12:25 UTC Modified files: source/parse.c Log message: Fixed +e burst parsing ---------------------- diff included ---------------------- Index: x2/source/parse.c diff -u x2/source/parse.c:1.91 x2/source/parse.c:1.92 --- x2/source/parse.c:1.91 Sun Jul 4 13:42:19 2004 +++ x2/source/parse.c Mon Jul 5 01:12:14 2004 @@ -361,6 +361,7 @@ } case '%': /* burst ban list */ { + int bore = 0; /* 0=ban, 1=exempt */ /* ChannelListType ChanPtr; */ char* ban; /* if(!(ChanPtr = GetChannel(channel))) */ @@ -371,7 +372,19 @@ ban = (char *) mysep(&rest, " ") /* Get next ban from outside stack */ ) { - add_ban(ChanPtr, ban); + if(ban[0]=='~') /* If we encounter a ~ its sirvulcans exempt marker. rest are exempts */ + { /* and ignore this one as its just a ~ */ + bore = 1; + ban++; + } + if(ban[0]) /* If the aboe ~ check didnt end the string.. */ + { + if(bore == 0) /* ban */ + add_ban(ChanPtr, ban); + /* else ** TODO: Add exempt functions and uncomment this ** + add_exempt(ChanPtr, ban); + */ + } } break; } @@ -1501,7 +1514,10 @@ } for(i = 0; i < SERVNUMLEN - 1; i++) + { numnick[i] = Arg[6][i]; + } + numnick[i] = '\0'; Debug(DBGINFO, "Adding server %s %s %s", Arg[1], ServiceName, numnick); AddServer(Arg[1], ServiceName, numnick); NETBURSTING = TRUE; /* Ignore incomming users for a while*/ ----------------------- End of diff ----------------------- |