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

On 31/08/2007, Marko Lindqvist <[EMAIL PROTECTED]> wrote:
>
>  Automatic metamessage is set (and sent) to metaserver only after
> first player is actually connected server.
>  Attached patch fixes this. For trunk, S2_1 and S2_0.

 Except that for *release* version default string is rather stupid;
"(default)". This version of the patch makes it empty string instead.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/meta.c freeciv/server/meta.c
--- freeciv/server/meta.c	2007-08-20 01:35:23.000000000 +0300
+++ freeciv/server/meta.c	2007-08-31 23:31:05.000000000 +0300
@@ -85,7 +85,7 @@
 #if IS_DEVEL_VERSION
   return "development version: beware";
 #else  /* IS_DEVEL_VERSION */
-  return "(default)";
+  return "\0";
 #endif /* IS_DEVEL_VERSION */
 #endif /* IS_BETA_VERSION */
 }
diff -Nurd -X.diff_ignore freeciv/server/srv_main.c freeciv/server/srv_main.c
--- freeciv/server/srv_main.c	2007-08-30 12:36:18.000000000 +0300
+++ freeciv/server/srv_main.c	2007-08-31 23:30:23.000000000 +0300
@@ -1814,6 +1814,7 @@
     server_open_meta(); /* open socket for meta server */ 
   }
 
+  maybe_automatic_meta_message(default_meta_message_string());
   (void) send_server_info_to_metaserver(META_INFO);
 
   /* accept new players, wait for serverop to start..*/
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to