history stuff

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1573 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-01-12 12:05:00 +00:00
parent 47f79f8f42
commit 8c6fa795fb
+5 -5
View File
@@ -225,14 +225,14 @@ int histpos = 0;
void history(int n)
{
if(vhistory.inrange(n))
static bool inhistory = true;
if(!inhistory && vhistory.inrange(n))
{
inhistory = true;
char *buf = vhistory[vhistory.length()-n-1];
if(buf[0]=='/')
{
if(strncmp(buf, "/history ", strlen("/history "))) execute(buf+1); // avoid history-recursion
}
if(buf[0]=='/') execute(buf+1);
else toserver(buf);
inhistory = false;
}
}