# HG changeset patch # User Wuzzy # Date 1538780402 -7200 # Node ID 65fe3933b19d57f717aa1e55128f00882b97fa4f # Parent 5df16be168ffb03eb3d4815e4b341e05da46aea3 No-op when entering /clan command with no argument diff -r 5df16be168ff -r 65fe3933b19d hedgewars/uChat.pas --- a/hedgewars/uChat.pas Fri Oct 05 21:43:48 2018 -0400 +++ b/hedgewars/uChat.pas Sat Oct 06 01:00:02 2018 +0200 @@ -511,9 +511,10 @@ end; // “/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 + if ((copy(s, 2, 5) = 'clan ') or (copy(s, 2, 5) = 'team ')) then begin - ParseCommand('team ' + copy(s, 7, Length(s) - 6), true); + if (Length(s) > 6) then + ParseCommand('team ' + copy(s, 7, Length(s) - 6), true); exit end;