diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-09 15:11:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-09 15:11:03 +0000 |
commit | da080b8e3cf8b63ce1a274a5522e70b1d9992785 (patch) | |
tree | 668d60bf2b9a3cd456241d5f32ce98bf4e38ce03 | |
parent | ff550d198ae151b0a9b7c35c5d6598cb06269b8f (diff) |
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
-rw-r--r-- | src/commands.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |