mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 10:40:13 +01:00
autowiz fix
Quick fix to autowiz not updating.
This commit is contained in:
parent
7b09f99adb
commit
d012fb8c01
1 changed files with 2 additions and 0 deletions
|
|
@ -198,6 +198,7 @@ void run_autowiz(void)
|
|||
if (CONFIG_USE_AUTOWIZ) {
|
||||
size_t res;
|
||||
char buf[256];
|
||||
int i;
|
||||
|
||||
#if defined(CIRCLE_UNIX)
|
||||
res = snprintf(buf, sizeof(buf), "nice ../bin/autowiz %d %s %d %s %d &",
|
||||
|
|
@ -211,6 +212,7 @@ void run_autowiz(void)
|
|||
if (res < sizeof(buf)) {
|
||||
mudlog(CMP, LVL_IMMORT, FALSE, "Initiating autowiz.");
|
||||
reboot_wizlists();
|
||||
i = system(buf);
|
||||
} else
|
||||
log("Cannot run autowiz: command-line doesn't fit in buffer.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue