Author: sveinung
Date: Wed Feb 17 15:27:50 2016
New Revision: 31961

URL: http://svn.gna.org/viewcvs/freeciv?rev=31961&view=rev
Log:
The metamessage command changes the setting.

It should therefore tell the settings system.

See bug #24415

Modified:
    trunk/server/stdinhand.c

Modified: trunk/server/stdinhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/stdinhand.c?rev=31961&r1=31960&r2=31961&view=diff
==============================================================================
--- trunk/server/stdinhand.c    (original)
+++ trunk/server/stdinhand.c    Wed Feb 17 15:27:50 2016
@@ -583,6 +583,8 @@
 static bool metamessage_command(struct connection *caller, 
                                 char *arg, bool check)
 {
+  struct setting *pset;
+
   if (check) {
     return TRUE;
   }
@@ -597,6 +599,11 @@
               _("Metaserver message string set to '%s', "
                 "not reporting to metaserver."), arg);
   }
+
+  /* Metamessage is also a setting. */
+  pset = setting_by_name("metamessage");
+  setting_changed(pset);
+  send_server_setting(NULL, pset);
 
   return TRUE;
 }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to