// $<number> is replaced with an argument to this alias (or copied as-is if no such parameter exists), can be multiple digits
if( *in == '$' ) {
outtext[outlen++] = *in++;
- } else if( *in == '*' && alias ) {
+ } else if( *in == '*' ) {
const char *linein = Cmd_Args();
+
+ if( !alias )
+ continue;
+
// include all params
if (linein) {
while( *linein && outlen < maxoutlen ) {
}
in++;
- } else if( '0' <= *in && *in <= '9' && alias ) {
+ } else if( '0' <= *in && *in <= '9' ) {
char *nexttoken;
int argnum;
+ if( !alias )
+ continue;
+
argnum = strtol( in, &nexttoken, 10 );
if( 0 <= argnum && argnum < Cmd_Argc() ) {