summaryrefslogtreecommitdiffstats
path: root/src/crsm.cpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2020-03-06 20:16:20 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2020-03-06 20:36:29 +0100
commite26bd89124cc8e88e656ca542fcc5323199c82f3 (patch)
treecb3ed409488b31f98284b89af57e7536a26cf03c /src/crsm.cpp
parent8a90a2ef056bd54424d35f07459f5689f73f13aa (diff)
downloadmanager-e26bd89124cc8e88e656ca542fcc5323199c82f3.tar.gz
manager-e26bd89124cc8e88e656ca542fcc5323199c82f3.zip
Don't add space after cmd in passToClonk when args is empty
Diffstat (limited to 'src/crsm.cpp')
-rw-r--r--src/crsm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp
index 9b6022b..5cddb73 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -2360,6 +2360,7 @@ void CRSM::handleIrcMessage(const ClientInfo &client, QString message, const QSt
QString command;
+ // TODO: compare according to the IRC standard (case-insensitive, what else? maybe libcommuni has something like that already?)
if(target == Config.IRC.IngameChannel && Session.IRC.UseIngameChat)
{
if(action)
@@ -2596,7 +2597,7 @@ CMD_FUNCTION_IMPL(help)
}
CMD_FUNCTION_IMPL(passToClonk)
- control.rawCommand(cmd + ' ' + args);
+ control.rawCommand(args.isEmpty() ? cmd : (cmd + ' ' + args));
return Success;
}