make bots being able to see channels of other bots and services
authorpk910 <philipp@zoelle1.de>
Fri, 8 Jul 2011 16:08:28 +0000 (18:08 +0200)
committerpk910 <philipp@zoelle1.de>
Fri, 8 Jul 2011 16:09:42 +0000 (18:09 +0200)
src/opserv.c

index a899e2c0a6b97ca6b6531fc0af76fc9ca672e0ed..e6efce3c0e50031c4526797485c04779fbc5fcd4 100644 (file)
@@ -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");