From 692f14eaaacfb9c038785b1058e2de66f48d2105 Mon Sep 17 00:00:00 2001 From: Greg Sikorski Date: Thu, 13 Apr 2000 20:07:13 +0000 Subject: [PATCH] Author: Gte Log message: * ircd/whocmds.c: Don't make idle flag default in /who, to prevent: "/who * x" "Gte3 H*iwg Gte@212.49.240.217 :1 :0 I am the one that was." (Found by Plexus). * ircd/whocmds.c: Change idle time calc from socket idle to user idle. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@162 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 12 +++++++++++- ircd/whocmds.c | 8 ++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index f54b16e..e5a3ebb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-04-13 Greg Sikorski + + * ircd/whocmds.c: Don't make idle flag default in /who, to prevent: + "/who * x" + "Gte3 H*iwg Gte@212.49.240.217 :1 :0 I am the one that was." + (Found by Plexus). + + * ircd/whocmds.c: Change idle time calc from socket idle to user + idle. + 2000-04-13 Kevin L. Mitchell * config/aclocal.m4 (unet_CHECK_TYPE_SIZES): check size of void *, @@ -433,7 +443,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.79 2000-04-13 19:20:52 kev Exp $ +# $Id: ChangeLog,v 1.80 2000-04-13 20:07:13 gte Exp $ # # Insert new changes at beginning of the change list. # diff --git a/ircd/whocmds.c b/ircd/whocmds.c index a34f429..a7c121f 100644 --- a/ircd/whocmds.c +++ b/ircd/whocmds.c @@ -21,8 +21,6 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id$ - * - * $Id$ */ #include "whocmds.h" #include "IPcheck.h" @@ -197,13 +195,11 @@ void do_who(struct Client* sptr, struct Client* acptr, struct Channel* repchan, p1 = sprintf_irc(p1, "%d", acptr->hopcount); } - if (!fields || (fields & WHO_FIELD_IDL)) + if (fields & WHO_FIELD_IDL) { *p1++ = ' '; - if (!fields) - *p1++ = ':'; /* Place colon here for default reply */ if (MyUser(acptr)) { - p1 = sprintf_irc(p1, "%d", CurrentTime-acptr->lasttime); + p1 = sprintf_irc(p1, "%d", CurrentTime - acptr->user->last); } else { *p1++ = '0'; -- 2.20.1