Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2005-07-12 02:59:00 UTC
Modified files:
ChangeLog ircd/gline.c ircd/ircd_auth.c
Log message:
Don't spam the network with local-interest protocol violations.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.659 ircu2.10/ChangeLog:1.660
--- ircu2.10/ChangeLog:1.659 Mon Jul 11 19:46:59 2005
+++ ircu2.10/ChangeLog Mon Jul 11 19:58:48 2005
@@ -1,3 +1,13 @@
+2005-07-11 Stephan Peijnik <[EMAIL PROTECTED]>
+
+ * ircd/gline.c (gline_add): It's only a protocol violation when a
+ server issues a "whacky" gline. If it's an oper, only tell opers
+ with SNO_GLINE.
+
+ * ircd/ircd_auth.c (iauth_protocol_violation): Likewise, the whole
+ network is not likely to care about IAuth PVs, so only tell opers
+ with SNO_CONNEXIT.
+
2005-07-11 Michael Poole <[EMAIL PROTECTED]>
* doc/readme.features: Document FEAT_CHANNELLEN.
Index: ircu2.10/ircd/gline.c
diff -u ircu2.10/ircd/gline.c:1.58 ircu2.10/ircd/gline.c:1.59
--- ircu2.10/ircd/gline.c:1.58 Sat Apr 16 08:32:43 2005
+++ ircu2.10/ircd/gline.c Mon Jul 11 19:58:49 2005
@@ -19,7 +19,7 @@
*/
/** @file
* @brief Implementation of Gline manipulation functions.
- * @version $Id: gline.c,v 1.58 2005/04/16 15:32:43 entrope Exp $
+ * @version $Id: gline.c,v 1.59 2005/07/12 02:58:49 entrope Exp $
*/
#include "config.h"
@@ -398,7 +398,12 @@
/* uh, what to do here? */
/* The answer, my dear Watson, is we throw a protocol_violation()
-- hikari */
- return protocol_violation(sptr,"%s has been smoking the sweet leaf and
sent me a whacky gline",cli_name(sptr));
+ if (IsServer(cptr))
+ return protocol_violation(sptr,"%s has been smoking the sweet leaf
and sent me a whacky gline",cli_name(sptr));
+ else {
+ sendto_opmask_butone(NULL, SNO_GLINE, "%s has been smoking the sweet
leaf and sent me a whacky gline", cli_name(sptr));
+ return 0;
+ }
break;
}
user = (*userhost =='$' ? userhost : userhost+2);
Index: ircu2.10/ircd/ircd_auth.c
diff -u ircu2.10/ircd/ircd_auth.c:1.17 ircu2.10/ircd/ircd_auth.c:1.18
--- ircu2.10/ircd/ircd_auth.c:1.17 Mon Jun 27 06:25:51 2005
+++ ircu2.10/ircd/ircd_auth.c Mon Jul 11 19:58:49 2005
@@ -19,7 +19,7 @@
*/
/** @file
* @brief IAuth client implementation for an IRC server.
- * @version $Id: ircd_auth.c,v 1.17 2005/06/27 13:25:51 entrope Exp $
+ * @version $Id: ircd_auth.c,v 1.18 2005/07/12 02:58:49 entrope Exp $
*/
#include "config.h"
@@ -365,7 +365,7 @@
assert(format != 0);
vd.vd_format = format;
va_start(vd.vd_args, format);
- sendwallto_group_butone(&me, WALL_DESYNCH, NULL, "IAuth protocol violation:
%v", &vd);
+ sendto_opmask_butone(NULL, SNO_CONNEXIT, "IAuth protocol violation: %v",
&vd);
va_end(vd.vd_args);
}
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches