summaryrefslogtreecommitdiff
path: root/src/cmd_whois.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_whois.cpp')
-rw-r--r--src/cmd_whois.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp
index 58328b3cc..8c8af78af 100644
--- a/src/cmd_whois.cpp
+++ b/src/cmd_whois.cpp
@@ -56,10 +56,9 @@ void do_whois(InspIRCd* ServerInstance, userrec* user, userrec* dest,unsigned lo
{
ServerInstance->SendWhoisLine(user, dest, 313, "%s %s :is %s %s on %s",user->nick, dest->nick, (strchr("AEIOUaeiou",*dest->oper) ? "an" : "a"),irc::Spacify(dest->oper), ServerInstance->Config->Network);
}
- if ((!signon) && (!idle))
- {
- FOREACH_MOD(I_OnWhois,OnWhois(user,dest));
- }
+
+ FOREACH_MOD(I_OnWhois,OnWhois(user,dest));
+
if (!strcasecmp(user->server,dest->server))
{
// idle time and signon line can only be sent if youre on the same server (according to RFC)