(options_cmd): Sent two prompts when listing options.
This commit is contained in:
parent
5d50b2accf
commit
244b2b7887
1 changed files with 2 additions and 1 deletions
|
@ -228,10 +228,11 @@ options_cmd(void)
|
||||||
|
|
||||||
if (!player->argp[1]) {
|
if (!player->argp[1]) {
|
||||||
for (i = 0; i < sizeof(login_opts) / sizeof(*login_opts); ++i)
|
for (i = 0; i < sizeof(login_opts) / sizeof(*login_opts); ++i)
|
||||||
pr_id(player, C_DATA, "%s=%d",
|
pr_id(player, C_DATA, "%s=%d\n",
|
||||||
login_opts[i].name,
|
login_opts[i].name,
|
||||||
(player->flags & login_opts[i].val) != 0);
|
(player->flags & login_opts[i].val) != 0);
|
||||||
pr_id(player, C_CMDOK, "\n");
|
pr_id(player, C_CMDOK, "\n");
|
||||||
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ap = player->argp+1; *ap; ++ap) {
|
for (ap = player->argp+1; *ap; ++ap) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue