X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/bd44fc7b09b4c7c50010e3e6e5de690e3b1f1920..b225bf93b7eaf8d4d6b1ac172463d280b48a782f:/modules/m_kline.c diff --git a/modules/m_kline.c b/modules/m_kline.c index 89ba2353..373fdfbd 100644 --- a/modules/m_kline.c +++ b/modules/m_kline.c @@ -669,6 +669,13 @@ find_user_host(struct Client *source_p, const char *userhost, char *luser, char rb_strlcpy(lhost, userhost, HOSTLEN + 1); } + /* would break the protocol */ + if (*luser == ':' || *lhost == ':') + { + sendto_one_notice(source_p, ":Invalid K-Line"); + return 0; + } + return 1; }