hedgewars/uChat.pas
changeset 4404 6bae4e9461aa
parent 4402 54a78ec6aac4
child 4465 743673c67d0c
--- a/hedgewars/uChat.pas	Sun Nov 21 19:41:19 2010 +0300
+++ b/hedgewars/uChat.pas	Sun Nov 21 19:51:33 2010 +0300
@@ -308,6 +308,11 @@
     end
 end;
 
+procedure chChatMessage(var s: shortstring);
+begin
+    AddChatString(s)
+end;
+
 procedure chSay(var s: shortstring);
 begin
     SendIPC('s' + s);
@@ -355,6 +360,7 @@
 
 procedure initModule;
 begin
+    RegisterVariable('chatmsg', vtCommand, @chChatMessage, true);
     RegisterVariable('say', vtCommand, @chSay, true);
     RegisterVariable('team', vtCommand, @chTeamSay, true);
     RegisterVariable('history', vtCommand, @chHistory, true );