X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/a6210c453a1662ad8af7088b0b446541f0069e02..fa00b4ada9ec565da65c243f2eb005484b486ae0:/modules/m_kline.c diff --git a/modules/m_kline.c b/modules/m_kline.c index 5bcfa70..5407d4c 100644 --- a/modules/m_kline.c +++ b/modules/m_kline.c @@ -588,8 +588,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 are '!' (n!u@h kline) and '@' (u@@h kline) */ - if(strchr(lhost, '#') || strchr(luser, '#') || strchr(luser, '!') || + /* # and " are invalid, as are '!' (n!u@h kline) and '@' (u@@h kline) */ + if(strchr(lhost, '#') || strchr(luser, '#') || strchr(lhost, '"') || + strchr(luser, '"') || strchr(luser, '!') || strchr(lhost, '@')) { sendto_one_notice(source_p, ":Invalid K-Line");