<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40671 >

Attached patch allows the underscore character '_' to be used
in option names. This is necessary for the prefix "mgr_" which
I intend to use for migration related options in 40612.

Hopefully I have not missed some bad side-effect about using '_'
in option names...


-----------------------------------------------------------------------
下線のある文字を覚えてください。
commit 6ef157a101cec93f90da14b6a49837e5afe8a34d
Author: Madeline Book <madeline.b...@gmail.com>
Date:   Wed Jan 21 21:13:25 2009 -0500

    Allow underscore character '_' in option names.

diff --git a/server/stdinhand.c b/server/stdinhand.c
index af02e70..38277f8 100644
--- a/server/stdinhand.c
+++ b/server/stdinhand.c
@@ -1999,7 +1999,7 @@ static bool show_command(struct connection *caller, char *str, bool check)
 ******************************************************************/
 static bool is_ok_opt_name_char(char c)
 {
-  return my_isalnum(c);
+  return my_isalnum(c) || c == '_';
 }
 
 /******************************************************************
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to