(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:
parent
504305357d
commit
342d7b33ce
2 changed files with 26 additions and 30 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue