[srvx-commits] CVS: services/src opserv.c,1.303,1.304
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2003-01-06 01:52:19
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv25020/src
Modified Files:
opserv.c
Log Message:
fix ?part
Index: opserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/opserv.c,v
retrieving revision 1.303
retrieving revision 1.304
diff -C2 -r1.303 -r1.304
*** opserv.c 3 Jan 2003 23:59:07 -0000 1.303
--- opserv.c 6 Jan 2003 01:52:15 -0000 1.304
***************
*** 1094,1101 ****
{
char *reason;
! OPSERV_NEED_CHANNEL();
! reason = (argc < 2) ? "Leaving." : unsplit_string(argv+1, argc-1, NULL);
! opserv_notice(user, OSMSG_LEAVING, channel->name);
! DelChannelUser(opserv, channel, reason, 0);
return 1;
}
--- 1094,1107 ----
{
char *reason;
! OPSERV_MIN_PARMS(2, false);
! if (!IsChannelName(argv[1])) {
! reply(MSG_NOT_CHANNEL_NAME);
! return 0;
! }
! if ((channel = GetChannel(argv[1]))) {
! reason = (argc < 2) ? "Leaving." : unsplit_string(argv+1, argc-1, NULL);
! opserv_notice(user, OSMSG_LEAVING, channel->name);
! DelChannelUser(opserv, channel, reason, 0);
! }
return 1;
}
|