X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/14e23b0e1e595ef97e15f90c74749e7345f6abd7..91e46e62e5f9faf6735e0c41ce21113939cacb85:/modules/m_chghost.c diff --git a/modules/m_chghost.c b/modules/m_chghost.c index fbb9022..f4778e0 100644 --- a/modules/m_chghost.c +++ b/modules/m_chghost.c @@ -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++) {