[srvx-commits] CVS: services/src modcmd.c,1.46,1.47
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2003-01-07 04:25:06
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27025/src
Modified Files:
modcmd.c
Log Message:
do not let suspended users use any auth-required commands
Index: modcmd.c
===================================================================
RCS file: /cvsroot/srvx/services/src/modcmd.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -r1.46 -r1.47
*** modcmd.c 17 Dec 2002 20:25:56 -0000 1.46
--- modcmd.c 7 Jan 2003 04:25:03 -0000 1.47
***************
*** 35,38 ****
--- 35,39 ----
#define MCMSG_BAD_OPTION "Unknown option %s."
#define MCMSG_MUST_QUALIFY "You $bMUST$b \"/msg %s@$s %s\" (not just /msg %s)."
+ #define MCMSG_ACCOUNT_SUSPENDED "Your account has been suspended."
#define MCMSG_CHAN_NOT_REGISTERED "%s has not been registered with $C."
#define MCMSG_NO_CHANNEL_ACCESS "You lack access to %s."
***************
*** 434,440 ****
return 0;
}
! if ((flags & MODCMD_REQUIRE_AUTHED) && !user->handle_info) {
! if (noisy) send_message(user, bot, MSG_AUTHENTICATE);
! return 0;
}
if (channel || noisy) {
--- 435,447 ----
return 0;
}
! if (flags & MODCMD_REQUIRE_AUTHED) {
! if (!user->handle_info) {
! if (noisy) send_message(user, bot, MSG_AUTHENTICATE);
! return 0;
! }
! if (HANDLE_FLAGGED(user->handle_info, SUSPENDED)) {
! if (noisy) send_message(user, bot, MCMSG_ACCOUNT_SUSPENDED);
! return 0;
! }
}
if (channel || noisy) {
|