diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-03-06 20:16:20 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-03-06 20:36:29 +0100 |
| commit | e26bd89124cc8e88e656ca542fcc5323199c82f3 (patch) | |
| tree | cb3ed409488b31f98284b89af57e7536a26cf03c | |
| parent | 8a90a2ef056bd54424d35f07459f5689f73f13aa (diff) | |
| download | manager-e26bd89124cc8e88e656ca542fcc5323199c82f3.tar.gz manager-e26bd89124cc8e88e656ca542fcc5323199c82f3.zip | |
Don't add space after cmd in passToClonk when args is empty
| -rw-r--r-- | src/crsm.cpp | 3 |
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; } |
