From da080b8e3cf8b63ce1a274a5522e70b1d9992785 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 9 Dec 2005 15:11:03 +0000 Subject: Fixed local whois ability to show idle time for remote user (idle time of 0!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2292 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands.cpp b/src/commands.cpp index bc144dd51..85d703c2a 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -881,7 +881,8 @@ void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long i } else { - WriteServ(user->fd,"317 %s %s %d %d :seconds idle, signon time",user->nick, dest->nick, idle, signon); + if ((!idle) || (!signon)) + WriteServ(user->fd,"317 %s %s %d %d :seconds idle, signon time",user->nick, dest->nick, idle, signon); } WriteServ(user->fd,"318 %s %s :End of /WHOIS list.",user->nick, dest->nick); } -- cgit v1.2.3