From aba3c8e53fe700f70bbb85dd47e807a257adfff6 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Wed, 29 Apr 2020 16:27:46 +0200 Subject: [PATCH] Fix set::who-limit documentation and make IRCOps exempt from this limit. reported by patphobos in https://bugs.unrealircd.org/view.php?id=5657 --- src/conf.c | 2 ++ src/modules/whox.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 97ca5053f..c1921b1c5 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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) diff --git a/src/modules/whox.c b/src/modules/whox.c index 23767af9d..e59b97e8a 100644 --- a/src/modules/whox.c +++ b/src/modules/whox.c @@ -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