]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/rea.c
commands: Rename the command functions
[empserver] / src / lib / commands / rea.c
index cbb0968a5a5edd15158a154ae6470a4b010ee76d..fea82ce5966dcfce91843ea79d6763d872a7afff 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -49,7 +49,7 @@
 static int print_sink(char *, size_t, void *);
 
 int
-rea(void)
+c_read(void)
 {
     static char *telnames[] = {
        /* must follow TEL_ defines in tel.h */
@@ -107,7 +107,7 @@ rea(void)
        if (res <= 0)
            break;
        if (*kind == 'a') {
-           if ((!nat_accepts(np, tgm.tel_from, REJ_ANNO))
+           if ((!nat_accepts(player->cnum, tgm.tel_from, REJ_ANNO))
                || tgm.tel_date < then) {
                res = tel_read_body(telfp, mbox, &tgm, NULL, NULL);
                if (res < 0)