[srvx-commits] CVS: services/src chanserv.c,1.305,1.306
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2002-11-11 04:55:34
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv18811/src
Modified Files:
chanserv.c
Log Message:
When updating a ChanServ permanent or timed ban's reason, update the owner also.
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.305
retrieving revision 1.306
diff -C2 -r1.305 -r1.306
*** chanserv.c 11 Nov 2002 04:20:03 -0000 1.305
--- chanserv.c 11 Nov 2002 04:55:29 -0000 1.306
***************
*** 2961,2972 ****
{
int exact = !irccasecmp(bData->mask, ban);
/* The ban is redundant; there is already a ban
with the same effect in place. */
-
if(exact)
{
if(bData->reason) free(bData->reason);
bData->reason = strdup(reason);
!
chanserv_notice(user, CSMSG_REASON_CHANGE, ban);
if(!bData->expires)
--- 2961,2972 ----
{
int exact = !irccasecmp(bData->mask, ban);
+
/* The ban is redundant; there is already a ban
with the same effect in place. */
if(exact)
{
if(bData->reason) free(bData->reason);
bData->reason = strdup(reason);
! safestrncpy(bData->owner, (user->handle_info ? user->handle_info->handle : user->nick), sizeof(bData->owner));
chanserv_notice(user, CSMSG_REASON_CHANGE, ban);
if(!bData->expires)
|