Don't spam the network with local-interest protocol violations.
authorMichael Poole <mdpoole@troilus.org>
Tue, 12 Jul 2005 02:58:49 +0000 (02:58 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 12 Jul 2005 02:58:49 +0000 (02:58 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1444 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/gline.c
ircd/ircd_auth.c

index d0c853e8aabf119e5bdb9ffb21e86a6d31d24f87..acb00009b0c19a159f83e1eba593820c0fa98f44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-07-11  Stephan Peijnik <speijnik@gmail.com>
+
+       * 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 <mdpoole@troilus.org>
 
        * doc/readme.features: Document FEAT_CHANNELLEN.
index 92b5abe580b5a0e2df7e3d9437e4eca514f0101e..689e2fb5e63a642e31cb83742419be6a5f86fef4 100644 (file)
@@ -398,7 +398,12 @@ gline_add(struct Client *cptr, struct Client *sptr, char *userhost,
         /* 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 dcd8974ce45fc9ab6c9cfadd59dfe5b222c56d38..c38bf5ce1a9938e56687232713760e2f57e7beba 100644 (file)
@@ -365,7 +365,7 @@ static void iauth_protocol_violation(struct IAuth *iauth, const char *format, ..
   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);
 }