CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_11_04
Commit time: 2002-12-30 01:02:00 UTC

Modified files:
  Tag: u2_10_11_04
     ChangeLog ircd/whocmds.c

Log message:

Author: [EMAIL PROTECTED]
Log message:

This patch fixes the bug with WHO <target> %l, where users are able to see 
the idle times of other users, that are on the same server.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.126.2.5 ircu2.10/ChangeLog:1.290.2.126.2.6
--- ircu2.10/ChangeLog:1.290.2.126.2.5  Sat Dec 28 08:31:36 2002
+++ ircu2.10/ChangeLog  Sun Dec 29 17:01:49 2002
@@ -1,3 +1,8 @@
+2002-12-29  volta <[EMAIL PROTECTED]>
+        
+       * ircd/whocmds.c: fixed a bug in the who reply for field 'l',
+       that breaks HIS
+
 2002-12-28  Kevin L Mitchell  <[EMAIL PROTECTED]>
 
        * ircd/m_create.c (ms_create): we must pass in a flag, not a
Index: ircu2.10/ircd/whocmds.c
diff -u ircu2.10/ircd/whocmds.c:1.12.2.7 ircu2.10/ircd/whocmds.c:1.12.2.7.4.1
--- ircu2.10/ircd/whocmds.c:1.12.2.7    Thu Oct 10 02:13:26 2002
+++ ircu2.10/ircd/whocmds.c     Sun Dec 29 17:01:50 2002
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: whocmds.c,v 1.12.2.7 2002/10/10 09:13:26 isomer Exp $
+ * $Id: whocmds.c,v 1.12.2.7.4.1 2002/12/30 01:01:50 isomer Exp $
  */
 #include "config.h"
 
@@ -212,7 +212,7 @@
   if (fields & WHO_FIELD_IDL)
   {
     *p1++ = ' ';
-    if (MyUser(acptr)) {
+    if (MyUser(acptr) & (IsAnOper(sptr) || !feature_bool(FEAT_HIS_WHO_SERVERNAME) || 
+acptr == sptr)) {
            p1 += ircd_snprintf(0, p1, 11, "%d",
                                CurrentTime - cli_user(acptr)->last);
     }    
----------------------- End of diff -----------------------

Reply via email to