mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
Give an error message when refusing a kline that has neither . : or @.
This commit is contained in:
parent
732280d99e
commit
af0ba24b4f
1 changed files with 3 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue