From: Janne Koschinski Date: Tue, 2 Feb 2016 16:50:32 +0000 (+0100) Subject: Fixed a tiny bug in aliasmanager X-Git-Tag: travis-deploy-test~526^2 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=0193d3cd5ad464c4cec75926970b14f9c41288a9 Fixed a tiny bug in aliasmanager The `/wait` check is to test if the first command is a `/wait`, which would operate synchronously. But `/wait` matches also on other commands – so, if, for example, we’d have a command like `/waiting`, it would be matched. Instead we actually want to match on `/wait ` (with space at the end). --- diff --git a/src/common/aliasmanager.cpp b/src/common/aliasmanager.cpp index 05ef3c93..cd21f991 100644 --- a/src/common/aliasmanager.cpp +++ b/src/common/aliasmanager.cpp @@ -198,7 +198,7 @@ void AliasManager::expand(const QString &alias, const BufferInfo &bufferInfo, co while (!expandedCommands.isEmpty()) { QString command; - if (expandedCommands[0].trimmed().toLower().startsWith("/wait")) { + if (expandedCommands[0].trimmed().toLower().startsWith("/wait ")) { command = expandedCommands.join("; "); expandedCommands.clear(); }