Author: Gte <gte@atomicrevs.demon.co.uk>
authorGreg Sikorski <gte@atomicrevs.demon.co.uk>
Thu, 13 Apr 2000 20:07:13 +0000 (20:07 +0000)
committerGreg Sikorski <gte@atomicrevs.demon.co.uk>
Thu, 13 Apr 2000 20:07:13 +0000 (20:07 +0000)
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
ircd/whocmds.c

index f54b16e7058816d30bafb5fc4d95bd9b447ca858..e5a3ebb3b07657fca44d575740991080d847eb7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2000-04-13  Greg Sikorski <gte@atomicrevs.demon.co.uk>
+
+       * 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  <klmitch@mit.edu>
 
        * config/aclocal.m4 (unet_CHECK_TYPE_SIZES): check size of void *,
 #
 # 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.
 #
index a34f429a7d92c2d1f66dec5af0f9883896dcdc76..a7c121fb454f284ee1030177e0a4bb1710f2bbb8 100644 (file)
@@ -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';