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

> [book - Fri Sep 05 22:13:20 2008]:
> 
> The connection list in the pregame page does not
> remove the '*' after a player's name when their
> command level changes from 'hack' to something
> less.

Attached patch adds the required connection info
sends to the cmdlevel command.


-----------------------------------------------------------------------
「地球温暖化の所為だろう」と私が答えた。
diff --git a/server/stdinhand.c b/server/stdinhand.c
index 5195a5c..7c10456 100644
--- a/server/stdinhand.c
+++ b/server/stdinhand.c
@@ -1325,6 +1325,7 @@ static bool cmdlevel_command(struct connection *caller, char *str, bool check)
 	cmd_reply(CMD_CMDLEVEL, caller, C_OK,
 		  _("Command access level set to '%s' for connection %s."),
 		  cmdlevel_name(level), pconn->username);
+        send_conn_info(pconn->self, NULL);
       } else {
 	cmd_reply(CMD_CMDLEVEL, caller, C_FAIL,
 		  _("Command access level could not be set to '%s' for "
@@ -1373,6 +1374,7 @@ static bool cmdlevel_command(struct connection *caller, char *str, bool check)
       cmd_reply(CMD_CMDLEVEL, caller, C_OK,
 		_("Command access level set to '%s' for connection %s."),
 		cmdlevel_name(level), ptarget->username);
+      send_conn_info(ptarget->self, NULL);
     } else {
       cmd_reply(CMD_CMDLEVEL, caller, C_FAIL,
 		_("Command access level could not be set to '%s'"
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to