Added command line history. New file 'history' used in the config folder
This commit is contained in:
@@ -37,6 +37,7 @@ void quit() // normal exit
|
||||
writepcksourcecfg();
|
||||
if(resetcfg) deletecfg();
|
||||
else writecfg();
|
||||
savehistory();
|
||||
cleanup(NULL);
|
||||
popscontext();
|
||||
exit(EXIT_SUCCESS);
|
||||
@@ -1168,6 +1169,7 @@ int main(int argc, char **argv)
|
||||
exec("config/securemaps.cfg");
|
||||
exec("config/admin.cfg");
|
||||
execfile("config/servers.cfg");
|
||||
loadhistory();
|
||||
per_idents = true;
|
||||
|
||||
static char resdata[] = { 112, 97, 99, 107, 97, 103, 101, 115, 47, 116, 101, 120, 116, 117, 114, 101, 115, 47, 107, 117, 114, 116, 47, 107, 108, 105, 116, 101, 50, 46, 106, 112, 103, 0 };
|
||||
|
||||
Reference in New Issue
Block a user