[srvx-commits] CVS: services/src chanserv.c,1.232.2.14,1.232.2.15
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2002-12-12 01:56:26
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv23762/src
Modified Files:
Tag: rel-1_1-branch
chanserv.c
Log Message:
Ignore channels in ChanServ's database with empty names and log the error.
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.232.2.14
retrieving revision 1.232.2.15
diff -C2 -r1.232.2.14 -r1.232.2.15
*** chanserv.c 23 Nov 2002 03:51:03 -0000 1.232.2.14
--- chanserv.c 12 Dec 2002 01:56:22 -0000 1.232.2.15
***************
*** 7014,7017 ****
--- 7014,7023 ----
users = database_get_data(channel, KEY_USERS, RECDB_OBJECT);
+ if(!*key)
+ {
+ log(CS_LOG, LOG_ERROR, "Read channel with empty name; skipping.\n");
+ return 0;
+ }
+
if(!users)
{
|