Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv19709/src
Modified Files:
chanserv.c
Log Message:
Tell users if they have no access to channels when they use the access
command.
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.338
retrieving revision 1.339
diff -C2 -r1.338 -r1.339
*** chanserv.c 31 Jan 2003 22:07:14 -0000 1.338
--- chanserv.c 31 Jan 2003 22:15:24 -0000 1.339
***************
*** 293,296 ****
--- 293,297 ----
#define CSMSG_IS_CHANSERV "$b$C$b is the $bchannel service bot$b."
#define CSMSG_ACCESS_SELF_ONLY "You may only see the list of infolines for yourself (by using $b%s$b with no arguments)."
+ #define CSMSG_SQUAT_ACCESS "You do not have access to any channels."
#define CSMSG_INFOLINE_LIST "Showing all channel entries for account $b%s$b:"
#define CSMSG_USER_NO_ACCESS "%s lacks access to %s."
***************
*** 3374,3377 ****
--- 3375,3383 ----
return 0;
}
+ }
+ if(!target_handle->channels)
+ {
+ reply(CSMSG_SQUAT_ACCESS);
+ return 1;
}
chanserv_notice(user, CSMSG_INFOLINE_LIST, target_handle->handle);
|