Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / ircd_reply.c
index 39d651459d14f66db927fc590afab098b307c5cd..fccf40d0193e744c50e1f8062f6742a336d63349 100644 (file)
@@ -22,6 +22,8 @@
  *
  * $Id$
  */
+#include "config.h"
+
 #include "ircd_reply.h"
 #include "client.h"
 #include "ircd.h"
@@ -50,8 +52,8 @@ int protocol_violation(struct Client* cptr, const char* pattern, ...)
   vd.vd_format = pattern;
   va_start(vd.vd_args, pattern);
 
-  sendcmdto_flag_butone(&me, CMD_DESYNCH, NULL, FLAGS_DEBUG,
-                       ":Protocol Violation from %s: %v", cli_name(cptr), &vd);
+  sendwallto_group_butone(&me, CMD_DESYNCH, NULL,
+                       "Protocol Violation from %s: %v", cli_name(cptr), &vd);
 
   va_end(vd.vd_args);
   return 0;
@@ -59,16 +61,6 @@ int protocol_violation(struct Client* cptr, const char* pattern, ...)
 
 int need_more_params(struct Client* cptr, const char* cmd)
 {
-#if 0
-  /*
-   * XXX - bug
-   * shouldn't try to do more than one thing at a time,
-   * call protocol_violation explicitly where it's needed and
-   * context is available.
-   */
-  if (!MyUser(cptr))
-    protocol_violation(cptr, "Not enough parameters for %s",cmd);
-#endif
   send_reply(cptr, ERR_NEEDMOREPARAMS, cmd);
   return 0;
 }