]> git.pond.sub.org Git - empserver/commitdiff
(banfil, authfil): Remove. Matching user is useless, because the
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 22 Feb 2006 22:12:18 +0000 (22:12 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 22 Feb 2006 22:12:18 +0000 (22:12 +0000)
player can send whatever he wants.  Banning IPs is better done with a
packet filter.  That leaves restricting deity IPs.
(privip): New econfig key to restrict deity IPs.
(may_play): Implement it.
(match_user): Unused, remove.

src/lib/global/constants.c

index b714097382995229c3ac3ceec41325cc06ff9be9..fe8d61d1dc5e9c15cdd18d05248222ecebb22db8 100644 (file)
@@ -25,8 +25,7 @@
  *
  *  ---
  *
- *  constants.c: Global constants file.  Note that the "hours" file can
- *               override these, as does the global "econfig" file.
+ *  constants.c: Global constants
  * 
  *  Known contributors to this file:
  *     Ken Stevens, 1995
@@ -40,6 +39,7 @@
 
 char *privname = "Deity forgot to edit econfig"; /* name of priv user */
 char *privlog = "careless@invalid"; /* logname of priv user */
+char *privip = "127.0.0.1 ::1";        /* divine hosts and networks */
 
 int WORLD_X = 64;              /* World size - x */
 int WORLD_Y = 32;              /* World size - y */