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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user