(may_play): New, factored out of play_cmd() and kill_cmd().

(play_cmd, kill_cmd): Use it.
(player_main): Don't check authfil, caller takes care of that.
This commit is contained in:
Markus Armbruster 2006-02-22 19:50:01 +00:00
parent 504305357d
commit 342d7b33ce
2 changed files with 26 additions and 30 deletions

View file

@ -79,11 +79,6 @@ player_main(struct player *p)
if (init_nats() < 0)
return;
natp = getnatp(player->cnum);
if (player->god && !match_user(authfil, player)) {
logerror("NON-AUTHed Login attempted by %s", praddr(player));
pr("You're not a deity!\n");
return;
}
if (!gamehours(player->curup)) {
pr("Empire hours restriction in force\n");
if (natp->nat_stat != STAT_GOD)