diff options
Diffstat (limited to 'src/kvirc/kernel/kvi_userinput.cpp')
-rw-r--r-- | src/kvirc/kernel/kvi_userinput.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kvirc/kernel/kvi_userinput.cpp b/src/kvirc/kernel/kvi_userinput.cpp index 07849cf1..6de11108 100644 --- a/src/kvirc/kernel/kvi_userinput.cpp +++ b/src/kvirc/kernel/kvi_userinput.cpp @@ -80,14 +80,14 @@ namespace KviUserInput static TQString szUserFriendlyCommandlineContext(__tr2qs("commandline::userfriendly")); TQString szCmd=szData; // escape any -$;\%( - szCmd.tqreplace("\\","\\\\"); - szCmd.tqreplace("\"","\\\""); - szCmd.tqreplace("$","\\$"); - szCmd.tqreplace("%","\\%"); - szCmd.tqreplace("(","\\("); - szCmd.tqreplace(";","\\;"); - szCmd.tqreplace("-","\\-"); - szCmd.tqreplace("+","\\+"); + szCmd.replace("\\","\\\\"); + szCmd.replace("\"","\\\""); + szCmd.replace("$","\\$"); + szCmd.replace("%","\\%"); + szCmd.replace("(","\\("); + szCmd.replace(";","\\;"); + szCmd.replace("-","\\-"); + szCmd.replace("+","\\+"); KviKvsScript kvs(szContext.isEmpty() ? szUserFriendlyCommandlineContext : szContext,szCmd); return (kvs.run(pWindow,0,0) != KviKvsScript::Error); } else { |