[X2serv-cvs] CVS: x2/source commands.c,1.148,1.149
Brought to you by:
sirvulcan
From: Richard P. <lys...@us...> - 2001-05-30 17:27:15
|
Update of /cvsroot/x2serv/x2/source In directory usw-pr-cvs1:/tmp/cvs-serv9554 Modified Files: commands.c Log Message: .addmask accepted the same hostmask to be added multiple times. It's fixed now. Index: commands.c =================================================================== RCS file: /cvsroot/x2serv/x2/source/commands.c,v retrieving revision 1.148 retrieving revision 1.149 diff -C2 -r1.148 -r1.149 *** commands.c 2001/05/21 18:27:19 1.148 --- commands.c 2001/05/30 13:24:13 1.149 *************** *** 2703,2706 **** --- 2703,2711 ---- return(FALSE); } + if (FindMask(desthptr, mask)) + { + send_to_user(uptr, "\002Error:\002 That mask already exists for user %s.", desthptr->Handle); + return(FALSE); + } mptr = AddMask(desthptr, mask); send_to_user(uptr, "New mask \"%s\" added for user \"%s\" in %s.", mptr->Mask, desthptr->Handle, cptr->Name); |