*/
#include "stdinc.h"
-#include "tools.h"
#include "send.h"
#include "channel.h"
#include "client.h"
#include "config.h"
#include "ircd.h"
#include "numeric.h"
-#include "memory.h"
#include "s_conf.h"
#include "s_newconf.h"
#include "s_serv.h"
mapi_clist_av1 chghost_clist[] = { &chghost_msgtab, &realhost_msgtab, NULL };
-DECLARE_MODULE_AV1(chghost, NULL, NULL, chghost_clist, NULL, NULL, "$Revision: 3227 $");
+DECLARE_MODULE_AV1(chghost, NULL, NULL, chghost_clist, NULL, NULL, "$Revision: 3424 $");
/* clean_host()
*
clean_host(const char *host)
{
int len = 0;
+
+ if (*host == '\0' || *host == ':')
+ return 0;
for(; *host; host++)
{
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;