Fix SF#1696437 by prohibiting not-all-alphabetic pseudo commands.
[ircu2.10.12-pk.git] / ircd / ircd_parser.y
index ccef4a76b058a36dcccfd1b4729975bb9795a770..e3dd3297ea92fdf9fe9e7af1b00ebe9515425cae 100644 (file)
@@ -1090,6 +1090,8 @@ pseudoitems '}' ';'
     parse_error("Missing name in pseudo %s block", smap->command);
   else if (!smap->services)
     parse_error("Missing nick in pseudo %s block", smap->command);
+  else if (!strIsAlpha(smap->command))
+    parse_error("Pseudo command %s invalid: must all be letters", smap->command);
   else
     valid = 1;
   if (valid && register_mapping(smap))