CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_03
Commit time: 2002-10-30 10:57:03 UTC
Modified files:
Tag: u2_10_11_03
ChangeLog ircd/m_whois.c
Log message:
Author: Alex Badea <[EMAIL PROTECTED]>
Log message:
Reply real host on whois to the user himself, too.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.125.2.7 ircu2.10/ChangeLog:1.290.2.125.2.8
--- ircu2.10/ChangeLog:1.290.2.125.2.7 Wed Oct 23 11:31:00 2002
+++ ircu2.10/ChangeLog Wed Oct 30 02:56:51 2002
@@ -1,3 +1,8 @@
+2002-10-30 Alex Badea <[EMAIL PROTECTED]>
+
+ * ircd/m_whois.c (do_whois): reply real host to the user himself,
+ in addition to opers
+
2002-10-23 Kevin L Mitchell <[EMAIL PROTECTED]>
* doc/readme.features: fix documentation--HIS_REMOTE is an integer
Index: ircu2.10/ircd/m_whois.c
diff -u ircu2.10/ircd/m_whois.c:1.19.2.8 ircu2.10/ircd/m_whois.c:1.19.2.8.8.1
--- ircu2.10/ircd/m_whois.c:1.19.2.8 Wed Jul 17 15:55:41 2002
+++ ircu2.10/ircd/m_whois.c Wed Oct 30 02:56:52 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: m_whois.c,v 1.19.2.8 2002/07/17 22:55:41 kev Exp $
+ * $Id: m_whois.c,v 1.19.2.8.8.1 2002/10/30 10:56:52 decampos Exp $
*/
/*
@@ -203,7 +203,7 @@
if (IsAccount(acptr))
send_reply(sptr, RPL_WHOISACCOUNT, name, user->account);
- if (HasHiddenHost(acptr) && IsAnOper(sptr))
+ if (HasHiddenHost(acptr) && (IsAnOper(sptr) || acptr == sptr))
send_reply(sptr, RPL_WHOISACTUALLY, name, user->username,
user->realhost, ircd_ntoa((const char*) &(cli_ip(acptr))));
----------------------- End of diff -----------------------