From: pk910 Date: Fri, 8 Jul 2011 16:08:28 +0000 (+0200) Subject: make bots being able to see channels of other bots and services X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=39540c5719fd88e5a6e4d75c827613a021c24546 make bots being able to see channels of other bots and services --- diff --git a/src/opserv.c b/src/opserv.c index a899e2c..e6efce3 100644 --- a/src/opserv.c +++ b/src/opserv.c @@ -1338,7 +1338,7 @@ static MODCMD_FUNC(cmd_whois) reply("OSMSG_WHOIS_ACCOUNT", (target->handle_info ? target->handle_info->handle : "Not authenticated")); intervalString(buffer, now - target->timestamp, user->handle_info); reply("OSMSG_WHOIS_NICK_AGE", buffer); - if (target->channels.used <= MAX_CHANNELS_WHOIS) + if (target->channels.used <= MAX_CHANNELS_WHOIS || HANDLE_FLAGGED(user->handle_info, BOT)) opserv_ison(user, target, "OSMSG_WHOIS_CHANNELS"); else reply("OSMSG_WHOIS_HIDECHANS");