summaryrefslogtreecommitdiff
path: root/src/cmd_whois.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 18:47:59 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 18:47:59 +0000
commit940db85761c02ff46b0281f20c823137c59a650a (patch)
tree597a88a97e9cbe6e779dde4bb27b491ae3053dae /src/cmd_whois.cpp
parent3d4abe3815193cc954b719d6e4cafafd5c30c980 (diff)
Remove redundant if (), pointed out by djGrrr.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6965 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_whois.cpp')
-rw-r--r--src/cmd_whois.cpp8
1 files changed, 2 insertions, 6 deletions
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]);