Disallow commas in channel resvs.

These can never match and could cause parse problems in resv.conf.
This commit is contained in:
Jilles Tjoelker 2009-05-08 01:23:40 +02:00
parent 63860dd1a7
commit 6e5b8a5dec
1 changed files with 7 additions and 0 deletions

View File

@ -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,