From af0ba24b4f2915f8a8e84938fb4d585741d7c0f0 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 21 May 2008 22:56:51 +0200 Subject: [PATCH] Give an error message when refusing a kline that has neither . : or @. --- modules/m_kline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/m_kline.c b/modules/m_kline.c index 51579613a..c45570029 100644 --- a/modules/m_kline.c +++ b/modules/m_kline.c @@ -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';