From 940db85761c02ff46b0281f20c823137c59a650a Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 10 May 2007 18:47:59 +0000 Subject: Remove redundant if (), pointed out by djGrrr. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6965 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_whois.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp index 85c4c904a..6d342ecfc 100644 --- a/src/cmd_whois.cpp +++ b/src/cmd_whois.cpp @@ -116,12 +116,8 @@ CmdResult cmd_whois::Handle (const char** parameters, int pcnt, userrec *user) */ if (IS_LOCAL(dest) && (!*ServerInstance->Config->HideWhoisServer || pcnt > 1)) { - /* this really is safe, we're only called for local users .. */ - if (IS_LOCAL(dest)) - { - idle = abs((dest->idle_lastmsg)-ServerInstance->Time()); - signon = dest->signon; - } + idle = abs((dest->idle_lastmsg)-ServerInstance->Time()); + signon = dest->signon; } do_whois(this->ServerInstance, user,dest,signon,idle,parameters[0]); -- cgit v1.2.3