X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=keys.c;h=839652ea2f443db7162f1972f7d862b0833ee003;hb=2712912e8219e96a09a172b87ec2f4f6cff5ad97;hp=1d1355367ba922678fcd225b0aeac6d994599a0d;hpb=8aeb705ddefa4a3c9176df32b629b3638f4a329a;p=xonotic%2Fdarkplaces.git diff --git a/keys.c b/keys.c index 1d135536..839652ea 100644 --- a/keys.c +++ b/keys.c @@ -536,7 +536,7 @@ Key_Message (int key, char ascii) if (key == K_ENTER || ascii == 10 || ascii == 13) { if(chat_mode < 0) - Cbuf_AddText(va("%s\n", chat_buffer)); + Cmd_ExecuteString(chat_buffer, src_command); // not Cbuf_AddText to allow semiclons in args; however, this allows no variables then. Use aliases! else Cmd_ForwardStringToServer(va("%s %s", chat_mode ? "say_team" : "say ", chat_buffer));