Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2003:
[Freeciv-Dev] Re: (PR#3706) append the capstring
Home

[Freeciv-Dev] Re: (PR#3706) append the capstring

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kaufman@xxxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3706) append the capstring
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Tue, 11 Mar 2003 23:21:48 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, Mar 11, 2003 at 10:12:50PM -0800, Mike Kaufman wrote:
> 
> here's small patch that allows the server or client to append tokens to the
> capstring at runtime. This allows not only compile options like:
> 
> #ifdef FOO
>   append_capability("foo");
> #endif
> 
> but also things like server commandline options:
> 
> % ser --foo
> 
>   if (is_option("--foo", argv[inx])
>     append_capability("foo");
>   }
> 
> this will be nice for things like gzip compression in the server and server
> authentication.

You know that you can pass the capability string with the environment
variable FREECIV_CAPS?!

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "How about the new language C&? No, that's not 'c ampersand', 'c reference', 
  'reference to c' or 'c and'. It's pronounced 'campersand', to confuse the 
  hell out of people who are unfamiliar with it, and it will, of course, 
  have no pointers."
    -- Xazziri in comp.lang.c++ about C#




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