[X2serv-cvs] CVS: x2/source chan.c,1.76,1.77 config.h,1.60,1.61 parse.c,1.67,1.68 user.c,1.33,1.34
Brought to you by:
sirvulcan
From: Alex S. <ru...@us...> - 2001-11-08 08:21:15
|
Update of /cvsroot/x2serv/x2/source In directory usw-pr-cvs1:/tmp/cvs-serv13537/source Modified Files: chan.c config.h parse.c user.c Log Message: Updating the readme's and stuff in preperation for a release. Index: chan.c =================================================================== RCS file: /cvsroot/x2serv/x2/source/chan.c,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -r1.76 -r1.77 *** chan.c 2001/08/28 17:37:08 1.76 --- chan.c 2001/11/08 08:21:08 1.77 *************** *** 430,433 **** --- 430,434 ---- char *numnick = NULL; char *banstring; + char *exemptstring; char *key; char *limit; *************** *** 529,532 **** --- 530,549 ---- } break; + case 'e': + exemptstring = (char *) strtok(params, " "); + params = (char *) strtok(NULL, "\0\n"); + if (!exemptstring) + break; + if (sign == '+') + { + // if (!IsModeK(uptr)) /* If its not a service doing it */ + // add_exempt(cptr, exemptstring); + } + else + /* sign == '-' */ + { + //delete_exempt(cptr, exemptstring); + } + break; case 'v': numnick = (char *) strtok(params, " "); *************** *** 617,620 **** --- 634,659 ---- } break; + case 'R': + if (modeok(cptr, uptr)) + break; + if (sign == '+') + { + if (cptr->MinModes & CMODER) + { + strcat(unminmode, "R"); + did_change = TRUE; + } + } + else + /* sign == '-' */ + { + if (cptr->PlusModes & CMODER) + { + strcat(unplusmode, "R"); + did_change = TRUE; + } + } + break; + case 'i': if (modeok(cptr, uptr)) Index: config.h =================================================================== RCS file: /cvsroot/x2serv/x2/source/config.h,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -r1.60 -r1.61 *** config.h 2001/08/28 17:37:08 1.60 --- config.h 2001/11/08 08:21:08 1.61 *************** *** 207,210 **** --- 207,212 ---- /* These are for channel mode parsing */ #define NOMODES 0 + #define CMODEe 512 + #define CMODER 256 #define CMODEn 128 #define CMODEt 64 *************** *** 217,222 **** /* These are for User mode parsing.. */ ! #define UMODEaway 512 ! #define UMODEgod 256 #define UMODEx 128 #define UMODEs 64 --- 219,226 ---- /* These are for User mode parsing.. */ ! #define UMODEaway 2048 ! #define UMODEgod 1024 ! #define UMODER 512 ! #define UMODEr 256 #define UMODEx 128 #define UMODEs 64 *************** *** 472,476 **** struct JoinedChansStruct *Chans; int Clones; ! unsigned int Modes:10; /* 0 0 0 0 0 0 0 0 0 = bits */ time_t LastInvite; struct UserStruct *NextA; --- 476,480 ---- struct JoinedChansStruct *Chans; int Clones; ! unsigned int Modes; /* 0 0 0 0 0 0 0 0 0 0 0 = bits */ time_t LastInvite; struct UserStruct *NextA; *************** *** 499,504 **** { char *Name; /* n t s p i l k m = modes */ ! unsigned int Modes; /* 0 0 0 0 0 0 0 0 = bits */ ! char *Topic; /* 8 7 6 5 4 3 2 1 = bit position */ char *Email; char *Description; --- 503,508 ---- { char *Name; /* n t s p i l k m = modes */ ! unsigned int Modes; /* 0 0 0 0 0 0 0 0 0 = bits */ ! char *Topic; /* 9 8 7 6 5 4 3 2 1 = bit position */ char *Email; char *Description; Index: parse.c =================================================================== RCS file: /cvsroot/x2serv/x2/source/parse.c,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -r1.67 -r1.68 *** parse.c 2001/09/18 12:51:26 1.67 --- parse.c 2001/11/08 08:21:08 1.68 *************** *** 493,497 **** check only on /join, and not on /part, we were getting strange wallops */ ! #ifndef CHARMIN #define CHAR_MIN -128 #endif --- 493,497 ---- check only on /join, and not on /part, we were getting strange wallops */ ! #ifndef CHAR_MIN #define CHAR_MIN -128 #endif Index: user.c =================================================================== RCS file: /cvsroot/x2serv/x2/source/user.c,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -r1.33 -r1.34 *** user.c 2001/04/10 01:11:17 1.33 --- user.c 2001/11/08 08:21:08 1.34 *************** *** 564,567 **** --- 564,573 ---- UserMode = UMODEx; break; + case 'r': + UserMode = UMODEr; + break; + case 'R': + UserMode = UMODER; + break; case '-': Operator = ch; |