Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv14773/src
Modified Files:
chanserv.c
Log Message:
do not allow normal users to unregister a suspended channel
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.349
retrieving revision 1.350
diff -C2 -r1.349 -r1.350
*** chanserv.c 24 May 2003 18:50:41 -0000 1.349
--- chanserv.c 12 Jun 2003 10:57:26 -0000 1.350
***************
*** 140,143 ****
--- 140,144 ----
#define CSMSG_UNREG_SUCCESS "$b%s$b has been unregistered."
#define CSMSG_UNREG_NODELETE "$b%s$b is protected from unregistration."
+ #define CSMSG_CHAN_SUSPENDED "$b$C$b access to $b%s$b has been temporarily suspended (%s)."
#define CSMSG_CONFIRM_UNREG "To confirm this unregistration, you must append 'CONFIRM' to the end of your command. For example, 'unregister CONFIRM'."
***************
*** 2007,2010 ****
--- 2008,2016 ----
if(!IsPrivileged(user))
{
+ if(IsSuspended(cData))
+ {
+ reply(CSMSG_CHAN_SUSPENDED, cData->suspended->name, cData->suspended->reason);
+ return 0;
+ }
if(argc < confirm + 1 || strcmp(argv[confirm], "CONFIRM"))
{
|