projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix maxlinks=0 in find_conf_exact(), so /oper to such a class works.
[ircu2.10.12-pk.git]
/
ircd
/
s_conf.c
diff --git
a/ircd/s_conf.c
b/ircd/s_conf.c
index 539a114a210c60d3ad248be125a507cced2a0743..2cc9385e2c8751c67f1ae2c2bed85ab15d456b13 100644
(file)
--- a/
ircd/s_conf.c
+++ b/
ircd/s_conf.c
@@
-656,6
+656,7
@@
struct ConfItem* find_conf_exact(const char* name, struct Client *cptr, int stat
else if (!ipmask_check(&cli_ip(cptr), &tmp->address.addr, tmp->addrbits))
continue;
if ((tmp->status & CONF_OPERATOR)
+ && (MaxLinks(tmp->conn_class) > 0)
&& (tmp->clients >= MaxLinks(tmp->conn_class)))
continue;
return tmp;