From 52c3941ece11ba77533e3815cea3c72a152b4466 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 10 May 2007 18:08:32 +0000 Subject: 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 --- src/cmd_whois.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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]); -- cgit v1.2.3