diff --git a/info/zdone.t b/info/zdone.t index 7f8e7740..eacf1d23 100644 --- a/info/zdone.t +++ b/info/zdone.t @@ -31,5 +31,8 @@ command. Your zdone state is cleared when an update occurs. .s1 The \*Qshow updates\*U command shows update policy and schedule. -.sp +.s1 +For deities, the command takes an additional parameter: the country to +impersonate. +.s1 .SA "show, Updates" diff --git a/src/lib/commands/zdon.c b/src/lib/commands/zdon.c index 346b8883..44ae01d2 100644 --- a/src/lib/commands/zdon.c +++ b/src/lib/commands/zdon.c @@ -75,19 +75,9 @@ zdon(void) pr("Demand updates are not enabled.\n"); return RET_FAIL; } - if (player->god) { - /* Deity syntax "country what" */ - whichcnum = natarg(player->argp[1], "Which country no.? "); - if (whichcnum < 0) - return RET_SYN; - p = getstarg(player->argp[2], "Want update? [Yes|No|Check] ", buf); - } else { - whichcnum = player->cnum; - p = getstarg(player->argp[1], "Want update? [Yes|No|Check] ", buf); - } + p = getstarg(player->argp[1], "Want update? [Yes|No|Check] ", buf); if (!p) return RET_SYN; - if (*p == 'y' || *p == 'Y') { checking = 0; wantupd = 1; @@ -99,6 +89,13 @@ zdon(void) wantupd = 0; } + if (player->god) { + whichcnum = natarg(player->argp[2], "for which country? "); + if (whichcnum < 0) + return RET_SYN; + } else + whichcnum = player->cnum; + if (!(natp = getnatp(whichcnum))) { pr("Unable to find country. %d\n", whichcnum); pr("Notify the Deity.\n");