mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 11:33:13 +02:00
Made the Own-protection just reduce the class maxli instead of bitching..
(class.c, s_user.c)
This commit is contained in:
@@ -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..
|
||||
+3
-4
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user