Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27452/src
Modified Files:
chanserv.c
Log Message:
Send a reply to the "opchan" command (in case someone is not in the channel)
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.350
retrieving revision 1.351
diff -C2 -r1.350 -r1.351
*** chanserv.c 12 Jun 2003 10:57:26 -0000 1.350
--- chanserv.c 14 Jun 2003 12:50:13 -0000 1.351
***************
*** 168,171 ****
--- 168,172 ----
#define CSMSG_ALREADY_DOWN "You are not opped or voiced in $b%s$b."
#define CSMSG_ALREADY_OPCHANNED "There has been no net.join since the opchan in $b%s$b."
+ #define CSMSG_OPCHAN_DONE "I have (re-)opped myself in $b%s$b."
/* User management */
***************
*** 2436,2444 ****
if(!IsPrivileged(user) && !channel->channel_info->may_opchan)
{
! chanserv_notice(user, CSMSG_ALREADY_OPCHANNED, channel->name);
return 0;
}
channel->channel_info->may_opchan = 0;
AddChannelOp(1, &chanserv, channel, chanserv, 1);
return 1;
}
--- 2437,2446 ----
if(!IsPrivileged(user) && !channel->channel_info->may_opchan)
{
! reply(CSMSG_ALREADY_OPCHANNED, channel->name);
return 0;
}
channel->channel_info->may_opchan = 0;
AddChannelOp(1, &chanserv, channel, chanserv, 1);
+ reply(CSMSG_OPCHAN_DONE, channel->name);
return 1;
}
***************
*** 7023,7027 ****
}
! if(!cData->users)
{
log(CS_LOG, LOG_ERROR, "Channel %s had no users in database, unregistering it.\n", key);
--- 7025,7029 ----
}
! if(!cData->users && !IsProtected(cData))
{
log(CS_LOG, LOG_ERROR, "Channel %s had no users in database, unregistering it.\n", key);
|