From 5b22717119d02ef9afe6a01ca55358ff99df941d Mon Sep 17 00:00:00 2001 From: stskeeps Date: Sun, 28 May 2000 16:03:08 +0000 Subject: [PATCH] Made the Own-protection just reduce the class maxli instead of bitching.. (class.c, s_user.c) --- Changes | 1 + src/class.c | 7 +++---- src/s_user.c | 7 ------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Changes b/Changes index 00392cd89..c2ef58b17 100644 --- a/Changes +++ b/Changes @@ -320,3 +320,4 @@ - Fixed a bug with /chgname with incorrect parameters to other servers - "Fixed" the /stats u bug? - Fixed +f not working (?) +- Made the Own-protection just reduce the class maxli instead of bitching.. \ No newline at end of file diff --git a/src/class.c b/src/class.c index f76cb5e88..31b73d416 100644 --- a/src/class.c +++ b/src/class.c @@ -142,10 +142,9 @@ void add_class(class, ping, confreq, maxli, sendq) if (maxli > (MAXCONNECTIONS - 15)) { - Debug((DEBUG_DEBUG, "Not adding Class %d as maxli is > MAXCONNECTIONS - 15", - class)); - badclass = class; - return; + Debug((DEBUG_DEBUG, "Reducing class %d to %i", + class, (MAXCONNECTIONS - 15))); + maxli = MAXCONNECTIONS - 15; } t = find_class(class); if ((t == classes) && (class != 0)) diff --git a/src/s_user.c b/src/s_user.c index 68b3bac1f..b7d5112be 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -575,13 +575,6 @@ static int register_user(cptr, sptr, nick, username, umode, virthost) if (MyConnect(sptr)) { - if (badclass) - { - ircsprintf(mo2, "ircd.conf Y:line class number %i is bad (contains too many max clients (> %i). Get your IRC admin to fix this", - badclass, MAXCONNECTIONS - 15); - exit_client(cptr, sptr, &me, mo2); - return 0; - } #ifdef SOCKSPORT if (sptr->flags & FLAGS_GOTSOCKS) {