]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/play.c
Update copyright notice
[empserver] / src / lib / commands / play.c
index a0a79a29a9d621afcc8f74c16dc40fc65de27b33..d3d1e7282d845a7e4114ea6d7b522979c1ba38d6 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2011, 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
@@ -29,6 +29,7 @@
  *  Known contributors to this file:
  *     Ken Stevens, 1995
  *     Steve McClure, 1998
+ *     Markus Armbruster, 2005-2011
  */
 
 #include <config.h>
@@ -105,17 +106,13 @@ play_list(struct player *joe)
        (long)(now - joe->curup));
 
     if (player->god) {
-       if (!joe->combuf || !*joe->combuf)
-           pr(" NULL\n");
-       else {
-           n = ufindpfx(joe->combuf, 20);
-           if (CANT_HAPPEN(n + 3u > sizeof(com))) {
-               pr(" BUGGY\n");
-               return 1;
-           }
-           sprintf(com, " %.*s\n", n, joe->combuf);
-           uprnf(com);
+       n = ufindpfx(joe->combuf, 20);
+       if (CANT_HAPPEN(n + 3u > sizeof(com))) {
+           pr(" BUGGY\n");
+           return 1;
        }
+       sprintf(com, " %.*s\n", n, joe->combuf);
+       uprnf(com);
     } else
        pr("\n");