]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_kline.c
presence: m_presence module: Use safer get_metadata() where appropriate, to avoid...
[irc/rqf/shadowircd.git] / modules / m_kline.c
index 5bcfa70ffc4daad88da42c2cfa66a54487203ebb..5407d4c5fd9bad245438e063c233454c16bfffe7 100644 (file)
@@ -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");