mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-23 20:11:44 +01:00
autowiz fix
Quick fix to autowiz not updating.
This commit is contained in:
@@ -198,6 +198,7 @@ void run_autowiz(void)
|
|||||||
if (CONFIG_USE_AUTOWIZ) {
|
if (CONFIG_USE_AUTOWIZ) {
|
||||||
size_t res;
|
size_t res;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
int i;
|
||||||
|
|
||||||
#if defined(CIRCLE_UNIX)
|
#if defined(CIRCLE_UNIX)
|
||||||
res = snprintf(buf, sizeof(buf), "nice ../bin/autowiz %d %s %d %s %d &",
|
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)) {
|
if (res < sizeof(buf)) {
|
||||||
mudlog(CMP, LVL_IMMORT, FALSE, "Initiating autowiz.");
|
mudlog(CMP, LVL_IMMORT, FALSE, "Initiating autowiz.");
|
||||||
reboot_wizlists();
|
reboot_wizlists();
|
||||||
|
i = system(buf);
|
||||||
} else
|
} else
|
||||||
log("Cannot run autowiz: command-line doesn't fit in buffer.");
|
log("Cannot run autowiz: command-line doesn't fit in buffer.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user