hedgewars/uChat.pas
changeset 2518 126850aec94d
parent 2500 31ba68a50208
child 2619 bc2786a00fb8
--- a/hedgewars/uChat.pas	Sat Oct 17 06:18:51 2009 +0000
+++ b/hedgewars/uChat.pas	Sat Oct 17 07:02:58 2009 +0000
@@ -204,7 +204,7 @@
     exit
     end;
 
-if copy(s, 1, 6) = '/team ' then
+if (copy(s, 1, 6) = '/team ') and (length(s) > 6) then
     begin
     ParseCommand(s, true);
     exit