1.1 --- a/plugins/include/console.inc Wed Sep 26 01:04:22 2007 +0000
1.2 +++ b/plugins/include/console.inc Wed Sep 26 01:22:25 2007 +0000
1.3 @@ -669,3 +669,14 @@
1.4 const String:command[],
1.5 flags,
1.6 bool:override_only=false);
1.7 +
1.8 +/**
1.9 + * Returns true if the supplied character is valid in a ConVar name.
1.10 + *
1.11 + * @param c Character to validate.
1.12 + * @return True is valid for ConVars, false otherwise
1.13 + */
1.14 +stock bool:IsValidConVarChar(c)
1.15 +{
1.16 + return (c == '_' || IsCharAlpha(c) || IsCharNumeric(c));
1.17 +}