+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.
/* 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);
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);
}