Give an error message when refusing a kline that has neither . : or @.

This commit is contained in:
Jilles Tjoelker 2008-05-21 22:56:51 +02:00
parent 732280d99e
commit af0ba24b4f

View file

@ -567,7 +567,10 @@ find_user_host(struct Client *source_p, const char *userhost, char *luser, char
* its a nick, which support was removed for.
*/
if(strchr(userhost, '.') == NULL && strchr(userhost, ':') == NULL)
{
sendto_one_notice(source_p, ":K-Line must be a user@host or host");
return 0;
}
luser[0] = '*'; /* no @ found, assume its *@somehost */
luser[1] = '\0';