[srvx-commits] CVS: services/src opserv.c,1.304,1.305
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2003-01-07 05:02:15
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv3415/src
Modified Files:
opserv.c
Log Message:
do not tell an oper we left a channel if we were not in it
Index: opserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/opserv.c,v
retrieving revision 1.304
retrieving revision 1.305
diff -C2 -r1.304 -r1.305
*** opserv.c 6 Jan 2003 01:52:15 -0000 1.304
--- opserv.c 7 Jan 2003 05:02:08 -0000 1.305
***************
*** 1100,1103 ****
--- 1100,1107 ----
}
if ((channel = GetChannel(argv[1]))) {
+ if (!GetUserMode(channel, opserv)) {
+ reply(OSMSG_NOT_ON_CHANNEL, opserv->nick, channel->name);
+ return 0;
+ }
reason = (argc < 2) ? "Leaving." : unsplit_string(argv+1, argc-1, NULL);
opserv_notice(user, OSMSG_LEAVING, channel->name);
|