]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_chghost.c
[svn] - disallow JOIN 0
[irc/rqf/shadowircd.git] / modules / m_chghost.c
index fbb9022e80ee426dff520d7081a097807912d985..f4778e013294da1d49757b5d52f2a7de22935c40 100644 (file)
@@ -48,7 +48,7 @@ struct Message chghost_msgtab = {
 
 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()
  *
@@ -60,6 +60,9 @@ static int
 clean_host(const char *host)
 {
        int len = 0;
+       
+       if (*host == '\0' || *host == ':')
+               return 0;
 
        for(; *host; host++)
        {