Rename chat command /team to /clan (but keep /team as alias for now)
authorWuzzy <Wuzzy2@mail.ru>
Thu, 04 Oct 2018 17:30:24 +0200
changeset 13829 266a25b79374
parent 13828 76a1d6275cd3
child 13830 d1f7a8a11526
Rename chat command /team to /clan (but keep /team as alias for now)
ChangeLog.txt
hedgewars/uChat.pas
share/hedgewars/Data/Locale/de.txt
share/hedgewars/Data/Locale/en.txt
--- a/ChangeLog.txt	Thu Oct 04 17:07:17 2018 +0200
+++ b/ChangeLog.txt	Thu Oct 04 17:30:24 2018 +0200
@@ -10,6 +10,7 @@
  + Campaigns and missions now use the user's chosen custom clan colors
  + New default brown clan color for better contrast
  + Allow to change volume during pause
+ + Rename chat command “/team” to “/clan” (but “/team” still works)
  * Functionality of controllers restored
  * Fix sine gun dealing damage to attacker if shooting up
  * Fix crash when 2 or more controllers were connected
--- a/hedgewars/uChat.pas	Thu Oct 04 17:07:17 2018 +0200
+++ b/hedgewars/uChat.pas	Thu Oct 04 17:30:24 2018 +0200
@@ -490,9 +490,10 @@
         exit
         end;
 
-    if (copy(s, 2, 5) = 'team ') and (length(s) > 6) then
+    // “/clan” or “/team” (“/team” is an alias for “/clan”)
+    if ((copy(s, 2, 5) = 'clan ') or (copy(s, 2, 5) = 'team ')) and (length(s) > 6) then
         begin
-        ParseCommand(s, true);
+        ParseCommand('team ' + copy(s, 7, Length(s) - 6), true);
         exit
         end;
 
@@ -1162,7 +1163,7 @@
         SetLine(InputStr, '', true)
     else
         begin
-        SetLine(InputStr, '/team ', true);
+        SetLine(InputStr, '/clan ', true);
         cursorPos:= 6;
         UpdateCursorCoords();
         end;
--- a/share/hedgewars/Data/Locale/de.txt	Thu Oct 04 17:07:17 2018 +0200
+++ b/share/hedgewars/Data/Locale/de.txt	Thu Oct 04 17:30:24 2018 +0200
@@ -1398,7 +1398,7 @@
 ; Chat command help
 06:00=Liste der grundlegenden Client-Chatbefehle:
 06:01=/togglechat: Chatanzeige umschalten
-06:02=/team <Nachricht>: Nachricht nur an Klanmitglieder schicken
+06:02=/clan <Nachricht>: Nachricht nur an Klanmitglieder schicken
 06:03=/me <Nachricht>: Chataktion, z.B. wird »/me isst Pizza« zu »* Spieler isst Pizza«
 06:04=/pause: Pause umschalten
 06:05=/pause: Automatisches Überspringen umschalten
--- a/share/hedgewars/Data/Locale/en.txt	Thu Oct 04 17:07:17 2018 +0200
+++ b/share/hedgewars/Data/Locale/en.txt	Thu Oct 04 17:30:24 2018 +0200
@@ -1301,7 +1301,7 @@
 ; Chat command help
 06:00=List of basic client chat commands:
 06:01=/togglechat: Toggle chat display
-06:02=/team <message>: Send message to clan members only
+06:02=/clan <message>: Send message to clan members only
 06:03=/me <message>: Chat action, e.g. “/me eats pizza” becomes “* Player eats pizza”
 06:04=/pause: Toggle pause
 06:05=/pause: Toggle auto skip