]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_chghost.c
Argh, wrong replace caused by MS VS 2005 interface.
[irc/rqf/shadowircd.git] / modules / m_chghost.c
index f4778e013294da1d49757b5d52f2a7de22935c40..f805cbbf1fdc3c9100f38134d7e22122b0b56612 100644 (file)
@@ -10,7 +10,6 @@
  */
 
 #include "stdinc.h"
-#include "tools.h"
 #include "send.h"
 #include "channel.h"
 #include "client.h"
@@ -18,7 +17,6 @@
 #include "config.h"
 #include "ircd.h"
 #include "numeric.h"
-#include "memory.h"
 #include "s_conf.h"
 #include "s_newconf.h"
 #include "s_serv.h"
@@ -240,7 +238,8 @@ mo_chghost(struct Client *client_p, struct Client *source_p,
                NOCAPS, CAP_TS6, ":%s ENCAP * CHGHOST %s :%s",
                source_p->name, target_p->name, parv[2]);
 #else
-       sendto_one_notice(source_p, ":CHGHOST is disabled");
+       sendto_one_numeric(source_p, ERR_DISABLED, form_str(ERR_DISABLED),
+                       "CHGHOST");
 #endif
 
        return 0;