From 6e5b8a5decaa3a83b190777d1e84b09a7e157db4 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 8 May 2009 01:23:40 +0200 Subject: [PATCH] Disallow commas in channel resvs. These can never match and could cause parse problems in resv.conf. --- modules/m_resv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/m_resv.c b/modules/m_resv.c index 5b35f2a..3cbf4a8 100644 --- a/modules/m_resv.c +++ b/modules/m_resv.c @@ -211,6 +211,13 @@ parse_resv(struct Client *source_p, const char *name, return; } + if(strchr(name, ',')) + { + sendto_one_notice(source_p, + ":Invalid character ',' in channel RESV"); + return; + } + if(strchr(reason, '"')) { sendto_one_notice(source_p,