Don't try to send empty team message
authorunc0rr
Sat, 17 Oct 2009 07:02:58 +0000
changeset 2518 126850aec94d
parent 2517 6ed1fba6da18
child 2519 78956afbd311
Don't try to send empty team message
hedgewars/uChat.pas
--- 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