added "getalias" command

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5491 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-07-30 20:55:54 +00:00
parent 57a7320a44
commit c66fbc758e
+5
View File
@@ -178,6 +178,11 @@ const char *getalias(const char *name)
ident *i = idents->access(name);
return i && i->type==ID_ALIAS ? i->action : NULL;
}
void _getalias(char *name)
{
result(getalias(name)?getalias(name):"");
}
COMMANDN(getalias, _getalias, ARG_1STR);
bool addcommand(const char *name, void (*fun)(), int narg)
{