Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-07-15 21:12:13 UTC

Modified files:
     ChangeLog ircd/m_whois.c

Log message:

Fix bug introduced to /whois yesterday.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.664 ircu2.10/ChangeLog:1.665
--- ircu2.10/ChangeLog:1.664    Thu Jul 14 20:15:10 2005
+++ ircu2.10/ChangeLog  Fri Jul 15 14:12:01 2005
@@ -1,3 +1,8 @@
+2005-07-15  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/m_whois.c (do_whois): Unswap sense of comparison to choose
+       between user->server and &his.
+
 2005-07-14  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/channel.c (mode_parse_apass): Update oplevels when setting
Index: ircu2.10/ircd/m_whois.c
diff -u ircu2.10/ircd/m_whois.c:1.36 ircu2.10/ircd/m_whois.c:1.37
--- ircu2.10/ircd/m_whois.c:1.36        Thu Jul 14 20:02:49 2005
+++ ircu2.10/ircd/m_whois.c     Fri Jul 15 14:12:02 2005
@@ -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: m_whois.c,v 1.36 2005/07/15 03:02:49 entrope Exp $
+ * $Id: m_whois.c,v 1.37 2005/07/15 21:12:02 entrope Exp $
  */
 
 /*
@@ -138,7 +138,7 @@
   const struct User* user = cli_user(acptr);
   const char* name = (!*(cli_name(acptr))) ? "?" : cli_name(acptr);  
   a2cptr = feature_bool(FEAT_HIS_WHOIS_SERVERNAME) && !IsAnOper(sptr)
-      && sptr != acptr ? user->server : &his;
+      && sptr != acptr ? &his : user->server;
   assert(user);
   send_reply(sptr, RPL_WHOISUSER, name, user->username, user->host,
                   cli_info(acptr));
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to