CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_04
Commit time: 2002-12-31 17:35:35 UTC
Modified files:
Tag: u2_10_11_04
ChangeLog ircd/m_userhost.c
Log message:
Author: hikari <[EMAIL PROTECTED]>
Log message:
Make /userhost send the real host to opers, inline with /userip
showing the real IP to opers.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.126.2.9 ircu2.10/ChangeLog:1.290.2.126.2.10
--- ircu2.10/ChangeLog:1.290.2.126.2.9 Sun Dec 29 17:57:57 2002
+++ ircu2.10/ChangeLog Tue Dec 31 09:35:22 2002
@@ -1,3 +1,6 @@
+2002-12-31 hikari <[EMAIL PROTECTED]>
+ * m_userhost.c: Send the real userhost to opers.
+
2002-12-30 Perry Lorier <[EMAIL PROTECTED]>
* ircd/m_gline.c: Server set glines are FORCE'd.
Index: ircu2.10/ircd/m_userhost.c
diff -u ircu2.10/ircd/m_userhost.c:1.9.2.1 ircu2.10/ircd/m_userhost.c:1.9.2.1.10.1
--- ircu2.10/ircd/m_userhost.c:1.9.2.1 Wed Apr 3 07:20:57 2002
+++ ircu2.10/ircd/m_userhost.c Tue Dec 31 09:35:24 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_userhost.c,v 1.9.2.1 2002/04/03 15:20:57 kev Exp $
+ * $Id: m_userhost.c,v 1.9.2.1.10.1 2002/12/31 17:35:24 shad0w Exp $
*/
/*
@@ -97,7 +97,9 @@
msgq_append(0, mb, "%s%s=%c%s@%s", cli_name(cptr),
HasPriv(cptr, PRIV_DISPLAY) ? "*" : "",
cli_user(cptr)->away ? '-' : '+', cli_user(cptr)->username,
- cli_user(cptr)->host);
+ HasHiddenHost(cptr) && !IsAnOper(sptr) ?
+ cli_user(cptr)->host :
+ cli_user(cptr)->realhost);
}
/*
----------------------- End of diff -----------------------