From 9c05c19cce18b5ca0b89ef3ce212ce9b20e164d4 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 21 May 2008 23:00:10 +0200 Subject: [PATCH] Reject u@@h klines. --- modules/m_kline.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/m_kline.c b/modules/m_kline.c index c4557002..fd9a2059 100644 --- a/modules/m_kline.c +++ b/modules/m_kline.c @@ -589,8 +589,9 @@ find_user_host(struct Client *source_p, const char *userhost, char *luser, char static int valid_user_host(struct Client *source_p, const char *luser, const char *lhost) { - /* # is invalid, as is '!' (n!u@h kline) */ - if(strchr(lhost, '#') || strchr(luser, '#') || strchr(luser, '!')) + /* # is invalid, as are '!' (n!u@h kline) and '@' (u@@h kline) */ + if(strchr(lhost, '#') || strchr(luser, '#') || strchr(luser, '!') || + strchr(lhost, '@')) { sendto_one_notice(source_p, ":Invalid K-Line"); return 0;