From: Rudolf Polzer Date: Wed, 6 Apr 2011 20:02:44 +0000 (+0200) Subject: fix wrong strreplace usage X-Git-Tag: xonotic-v0.5.0~307^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0df96e4d3a9f2e0918451866a70799d8ad18cfd3;p=xonotic%2Fxonotic-data.pk3dir.git fix wrong strreplace usage --- diff --git a/qcsrc/server/gamecommand.qc b/qcsrc/server/gamecommand.qc index b0085224f..daec8754e 100644 --- a/qcsrc/server/gamecommand.qc +++ b/qcsrc/server/gamecommand.qc @@ -779,10 +779,10 @@ void GameCommand(string command) if(argc == 4) { s = argv(2); - s = strreplace(s, "\n", ""); - s = strreplace(s, "\\", "\\\\"); - s = strreplace(s, "$", "$$"); - s = strreplace(s, "\"", "\\\""); + s = strreplace("\n", "", s); + s = strreplace("\\", "\\\\", s); + s = strreplace("$", "$$", s); + s = strreplace("\"", "\\\"", s); stuffcmd(client, sprintf("\ninfobar %f \"%s\"\n", stof(argv(3)), s)); } else