From 5a2440c9d49a2aa5f8d34837a5b2beed40d84b7f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 7 May 2008 22:05:22 +0200 Subject: [PATCH] Fix origin command not to prompt twice for its argument Broken in commit b69173ee, v4.3.0. (cherry picked from commit 27c3466aa5669b442eca850495107aee8110c228) --- src/lib/commands/orig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/orig.c b/src/lib/commands/orig.c index 4063893e..d8c91f76 100644 --- a/src/lib/commands/orig.c +++ b/src/lib/commands/orig.c @@ -47,7 +47,7 @@ orig(void) struct natstr *np; p = getstarg(player->argp[1], "New origin (sector or country) : ", buf); - if (!p) + if (!p || !*p) return RET_SYN; if (!isalpha(*p) && strchr(p, ',')) { /* sector */