[X2serv-cvs] CVS: x2/source commands.c,1.141,1.142
Brought to you by:
sirvulcan
From: Alex S. <ru...@us...> - 2001-04-11 21:14:28
|
Update of /cvsroot/x2serv/x2/source In directory usw-pr-cvs1:/tmp/cvs-serv15884/source Modified Files: commands.c Log Message: Fixed seen to report properly when a newly added user has never been seen. Fixed spoofserv to not allow names that lack a "." Index: commands.c =================================================================== RCS file: /cvsroot/x2serv/x2/source/commands.c,v retrieving revision 1.141 retrieving revision 1.142 diff -C2 -r1.141 -r1.142 *** commands.c 2001/04/11 09:04:31 1.141 --- commands.c 2001/04/11 21:14:23 1.142 *************** *** 1691,1694 **** --- 1691,1698 ---- sprintf(sendbuff, "%s is in %s right now.", rest, cptr->Name); } + else if (Handle->LastSeen == 0) + { + sprintf(sendbuff, "%s has not yet been seen.", rest); + } else { *************** *** 4440,4443 **** --- 4444,4452 ---- { send_to_user(uptr, "Syntax: SPOOFSERV <server name>"); + return(FALSE); + } + if(!strchr(Serv, '.')) + { + send_to_user(uptr, "Invalid server name. Server must have at least one dot (.)"); return(FALSE); } |