Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_defaults.c
index 67fcc1b5a0342fa0540b8f5e3a44c221be7f5875..bb52d2ac0b9fa0ea02fe35ac1e68f5d27694f334 100644 (file)
@@ -22,6 +22,8 @@
  *
  * $Id$
  */
+#include "config.h"
+
 #if 0
 /*
  * No need to include handlers.h here the signatures must match
 
 int m_not_oper(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
-  return send_error_to_client(cptr, ERR_NOPRIVILEGES);
+  return send_reply(cptr, ERR_NOPRIVILEGES);
 }
 
 int m_unregistered(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
-  sendto_one(cptr, ":%s %d * %s :Register first.",
-             me.name, ERR_NOTREGISTERED, parv[0]);
+  send_reply(cptr, SND_EXPLICIT | ERR_NOTREGISTERED, "%s :Register first.",
+            parv[0]);
   return 0;
 }
 
 int m_registered(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
-  return send_error_to_client(sptr, ERR_ALREADYREGISTRED);
+  return send_reply(sptr, ERR_ALREADYREGISTRED);
 }
 
 int m_ignore(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
@@ -123,8 +125,8 @@ int m_ignore(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 int m_unsupported(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 {
 #if 0
-  sendto_one(cptr, ":%s %d * %s :Unsupported command",
-             me.name, ERR_UNSUPPORTED, parv[0]);
+  send_reply(cptr, SND_EXPLICIT | ERR_UNSUPPORTED, "%s :Unsupported command",
+            parv[0]);
 #endif
   return 0;
 }