summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd_whois.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp
index d86360df6..5945a1002 100644
--- a/src/cmd_whois.cpp
+++ b/src/cmd_whois.cpp
@@ -116,8 +116,11 @@ CmdResult cmd_whois::Handle (const char** parameters, int pcnt, userrec *user)
if (!*ServerInstance->Config->HideWhoisServer)
{
/* this really is safe, we're only called for local users .. */
- idle = abs((dest->idle_lastmsg)-ServerInstance->Time());
- signon = dest->signon;
+ if (IS_LOCAL(dest))
+ {
+ idle = abs((dest->idle_lastmsg)-ServerInstance->Time());
+ signon = dest->signon;
+ }
}
do_whois(this->ServerInstance, user,dest,signon,idle,parameters[0]);