tServerMOTD can now be edited via. options dialog. - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 229a7aec7349e10a38bb9e72a3358857338b199c
parent 7c626d36f6b8972f7d1297ebdf4ea0a5eb2dc81d
Author: Ben Webb 
Date:   Mon, 25 Mar 2002 17:00:14 +0000

ServerMOTD can now be edited via. options dialog.


Diffstat:
  M src/gui_client/optdialog.c          |      10 ++++++++--

1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gui_client/optdialog.c b/src/gui_client/optdialog.c
t@@ -787,7 +787,7 @@ void OptDialog(GtkWidget *widget, gpointer data)
   label = gtk_label_new(_("Cops"));
   gtk_notebook_append_page(GTK_NOTEBOOK(notebook), hbox, label);
 
-  table = gtk_table_new(5, 4, FALSE);
+  table = gtk_table_new(6, 4, FALSE);
   gtk_table_set_row_spacings(GTK_TABLE(table), 5);
   gtk_table_set_col_spacings(GTK_TABLE(table), 5);
 
t@@ -831,8 +831,14 @@ void OptDialog(GtkWidget *widget, gpointer data)
   entry = NewConfigEntry("MetaServer.Comment");
   gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 4, 4, 5);
 
+  label = gtk_label_new(_("MOTD (welcome message)"));
+  gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6,
+                   GTK_SHRINK, GTK_SHRINK, 0, 0);
+  entry = NewConfigEntry("ServerMOTD");
+  gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 4, 5, 6);
+
   gtk_container_set_border_width(GTK_CONTAINER(table), 7);
-  label = gtk_label_new(_("Metaserver"));
+  label = gtk_label_new(_("Server"));
   gtk_notebook_append_page(GTK_NOTEBOOK(notebook), table, label);
 
   gtk_notebook_set_page(GTK_NOTEBOOK(notebook), 0);