summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 18:08:32 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 18:08:32 +0000
commit52c3941ece11ba77533e3815cea3c72a152b4466 (patch)
tree05e9766f3520aa94a2f4f104a2c7b46fab3386d3 /src
parente8a950b2cf8e56026ff38383a05ce9c19d4d4257 (diff)
FIX: Don't show time for remote clients on /whois nick
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6963 e03df62e-2008-0410-955e-edbf42e46eb7
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]);