Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv20976/src
Modified Files:
chanserv.c
Log Message:
fix some !access bugs
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.259
retrieving revision 1.260
diff -C2 -r1.259 -r1.260
*** chanserv.c 4 Aug 2002 13:49:50 -0000 1.259
--- chanserv.c 4 Aug 2002 21:10:03 -0000 1.260
***************
*** 3267,3270 ****
--- 3267,3275 ----
target_handle = user->handle_info;
+ if(!target_handle)
+ {
+ chanserv_notice(user, MSG_AUTHENTICATE);
+ return 0;
+ }
if(argc > 1)
{
***************
*** 3283,3287 ****
if(!cList->user->info) continue;
chanName = cList->channel->channel ? cList->channel->channel->name : cList->channel->suspended->name;
! chanserv_notice(user, "[%s] %s", chanName, cList->user->info);
}
return 1;
--- 3288,3292 ----
if(!cList->user->info) continue;
chanName = cList->channel->channel ? cList->channel->channel->name : cList->channel->suspended->name;
! chanserv_notice(user, "[%s (%s)] %s", chanName, accessNames[cList->user->access], cList->user->info);
}
return 1;
***************
*** 3311,3315 ****
}
! /* could assert(target || target_handle); */
if(target == chanserv)
--- 3316,3320 ----
}
! assert(target || target_handle);
if(target == chanserv)
***************
*** 3377,3381 ****
* if the requestor is in the channel or it's their own
* handle. */
! if(uData->info && (GetUserMode(channel, user) || target_handle == user->handle_info))
{
chanserv_notice(user, "[%s] %s", (target ? target->nick : target_handle->handle), uData->info);
--- 3382,3386 ----
* if the requestor is in the channel or it's their own
* handle. */
! if(uData->info && (GetUserMode(channel, user) || (target_handle == user->handle_info)))
{
chanserv_notice(user, "[%s] %s", (target ? target->nick : target_handle->handle), uData->info);
***************
*** 7031,7035 ****
DEFINE_COMMAND(peek, 1, MODCMD_REQUIRE_REGCHAN, "access", "op", "flags", "+nolog", NULL);
! DEFINE_COMMAND(access, 1, 0, "flags", "+nolog", NULL);
DEFINE_COMMAND(users, 1, MODCMD_REQUIRE_REGCHAN, "flags", "+nolog,+joinable", NULL);
DEFINE_COMMAND(wlist, 1, MODCMD_REQUIRE_REGCHAN, "flags", "+nolog,+joinable", NULL);
--- 7036,7040 ----
DEFINE_COMMAND(peek, 1, MODCMD_REQUIRE_REGCHAN, "access", "op", "flags", "+nolog", NULL);
! DEFINE_COMMAND(access, 1, 0, "flags", "+nolog,+acceptchan", NULL);
DEFINE_COMMAND(users, 1, MODCMD_REQUIRE_REGCHAN, "flags", "+nolog,+joinable", NULL);
DEFINE_COMMAND(wlist, 1, MODCMD_REQUIRE_REGCHAN, "flags", "+nolog,+joinable", NULL);
|