CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_04
Commit time: 2002-12-18 09:01:40 UTC
Modified files:
Tag: u2_10_11_04
ChangeLog ircd/s_stats.c ircd/s_user.c
Log message:
Author: Kev <[EMAIL PROTECTED]>
Log message:
Only send RPL_HOSTHIDDEN when the user's connected to me.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.126.2.3 ircu2.10/ChangeLog:1.290.2.126.2.4
--- ircu2.10/ChangeLog:1.290.2.126.2.3 Tue Dec 17 15:28:13 2002
+++ ircu2.10/ChangeLog Wed Dec 18 01:01:24 2002
@@ -1,3 +1,12 @@
+2002-12-18 Kevin L Mitchell <[EMAIL PROTECTED]>
+
+ * ircd/s_stats.c (stats_init): er, should have started at 0--not
+ that we'll ever see a /stats '\0', but just for completeness' sake
+ :)
+
+ * ircd/s_user.c (hide_hostmask): only send the reply if the user's
+ on my server
+
2002-12-17 hikari <[EMAIL PROTECTED]>
* ircd/s_err.c: added RPL_HOSTHIDDEN reply text
Index: ircu2.10/ircd/s_stats.c
diff -u ircu2.10/ircd/s_stats.c:1.16.2.7 ircu2.10/ircd/s_stats.c:1.16.2.7.2.1
--- ircu2.10/ircd/s_stats.c:1.16.2.7 Sat Dec 14 17:02:44 2002
+++ ircu2.10/ircd/s_stats.c Wed Dec 18 01:01:29 2002
@@ -19,7 +19,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: s_stats.c,v 1.16.2.7 2002/12/15 01:02:44 isomer Exp $
+ * $Id: s_stats.c,v 1.16.2.7.2.1 2002/12/18 09:01:29 klmitch Exp $
*/
#include "config.h"
@@ -477,7 +477,7 @@
int i;
/* Make darn sure the statsmap array is initialized to all zeros */
- for (i = 1; i < 256; i++)
+ for (i = 0; i < 256; i++)
statsmap[i] = 0;
/* Build the mapping */
Index: ircu2.10/ircd/s_user.c
diff -u ircu2.10/ircd/s_user.c:1.52.2.14.2.1 ircu2.10/ircd/s_user.c:1.52.2.14.2.2
--- ircu2.10/ircd/s_user.c:1.52.2.14.2.1 Tue Dec 17 14:52:10 2002
+++ ircu2.10/ircd/s_user.c Wed Dec 18 01:01:30 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: s_user.c,v 1.52.2.14.2.1 2002/12/17 22:52:10 shad0w Exp $
+ * $Id: s_user.c,v 1.52.2.14.2.2 2002/12/18 09:01:30 klmitch Exp $
*/
#include "config.h"
@@ -1060,8 +1060,9 @@
SetFlag(cptr, flag);
/* ok, the client is now fully hidden, so let them know -- hikari */
- send_reply(cptr, RPL_HOSTHIDDEN, cli_user(cptr)->account,
- feature_str(FEAT_HIDDEN_HOST));
+ if (MyConnect(cptr))
+ send_reply(cptr, RPL_HOSTHIDDEN, cli_user(cptr)->account,
+ feature_str(FEAT_HIDDEN_HOST));
/*
* Go through all channels the client was on, rejoin him
----------------------- End of diff -----------------------