summaryrefslogtreecommitdiff
path: root/src/cmd_whois.cpp
diff options
context:
space:
mode:
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]);