Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: (PR#6848) Re: [Freeciv] connection restriction
Home

[Freeciv-Dev] Re: (PR#6848) Re: [Freeciv] connection restriction

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6848) Re: [Freeciv] connection restriction
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 13 Nov 2003 08:25:22 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6848 >

On Thu, Nov 13, 2003 at 07:08:14AM -0800, andrearo@xxxxxxxxxxxx wrote:
> >
> > We should implement that.
> >
> 
> Maybe also a "registered users only" option for servers with
> authentication?

this already exists to some point. In server/connecthand.c:

include "connecthand.h"

/* TODO: these should probably server options */
-#define NEW_USERS_ALLOWED  /* if defined, new users may log in. */
-#define GUESTS_ALLOWED     /* if defined, users can log in as guests */
+#undef NEW_USERS_ALLOWED  /* if defined, new users may log in. */
+#undef GUESTS_ALLOWED     /* if defined, users can log in as guests */

#define GUEST_NAME "guest"

should get you what you want. Unfortunately it requires diving into the
source code to change it, but if there's great interest, you could probably
find someone to make it a configure option.

-mike




[Prev in Thread] Current Thread [Next in Thread]