]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Disallow commas in channel resvs.
authorJilles Tjoelker <redacted>
Thu, 7 May 2009 23:23:40 +0000 (01:23 +0200)
committerJilles Tjoelker <redacted>
Thu, 7 May 2009 23:23:40 +0000 (01:23 +0200)
These can never match and could cause parse problems in resv.conf.

modules/m_resv.c

index 5b35f2a581a7954a4bc2ca30219361fd21630b1c..3cbf4a86986a83311e945e7bad6c03cdf894e206 100644 (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,