Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv17392
Modified Files:
nickserv.c
Log Message:
If maxlogins has been set above the hard max by somone with override, don't
remove that setting upon restart.
Index: nickserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/nickserv.c,v
retrieving revision 1.264
retrieving revision 1.265
diff -C2 -r1.264 -r1.265
*** nickserv.c 18 Oct 2003 15:52:21 -0000 1.264
--- nickserv.c 6 Nov 2003 19:17:09 -0000 1.265
***************
*** 3004,3009 ****
str = database_get_data(obj, KEY_MAXLOGINS, RECDB_QSTRING);
hi->maxlogins = str ? strtoul(str, NULL, 0) : 0;
- if (hi->maxlogins > nickserv_conf.hard_maxlogins)
- hi->maxlogins = nickserv_conf.hard_maxlogins;
str = database_get_data(obj, KEY_OPSERV_LEVEL, RECDB_QSTRING);
hi->opserv_level = str ? strtoul(str, NULL, 0) : 0;
--- 3004,3007 ----
|