1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 09:23:12 +02:00

Fix set::who-limit documentation and make IRCOps exempt from this limit.

reported by patphobos in https://bugs.unrealircd.org/view.php?id=5657
This commit is contained in:
Bram Matthys
2020-04-29 16:27:46 +02:00
parent 9c10bca2a2
commit aba3c8e53f
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1746,6 +1746,8 @@ void config_setdefaultsettings(Configuration *i)
i->manual_ban_target = BAN_TARGET_HOST;
i->hide_idle_time = HIDE_IDLE_TIME_OPER_USERMODE;
i->who_limit = 100;
}
static void make_default_logblock(void)
+1 -1
View File
@@ -560,7 +560,7 @@ static void who_common_channel(Client *client, Channel *channel,
static void who_global(Client *client, char *mask, int operspy, struct who_format *fmt)
{
Client *acptr;
int maxmatches = WHOLIMIT ? WHOLIMIT : 100;
int maxmatches = IsOper(client) ? INT_MAX : WHOLIMIT;
/* first, list all matching INvisible clients on common channels
* if this is not an operspy who