X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fuserinputhandler.cpp;h=de56d85bd94b5f1598fa9526c14577439a96996a;hp=4b4c079659112e4cfd33719181e4399084f147af;hb=1083b65ff728a303caf700adf4179f337c6528fe;hpb=0d2e5ff7439fe7bf9f24f1f55763881382ecb12a diff --git a/src/core/userinputhandler.cpp b/src/core/userinputhandler.cpp index 4b4c0796..de56d85b 100644 --- a/src/core/userinputhandler.cpp +++ b/src/core/userinputhandler.cpp @@ -504,7 +504,14 @@ void UserInputHandler::timerEvent(QTimerEvent *event) { QObject::timerEvent(event); return; } - Command command = _delayedCommands.take(event->timerId()); + BufferInfo bufferInfo = _delayedCommands[event->timerId()].bufferInfo; + QString rawCommand = _delayedCommands[event->timerId()].command; + _delayedCommands.remove(event->timerId()); event->accept(); - handleUserInput(command.bufferInfo, command.command); + + // the stored command might be the result of an alias expansion, so we need to split it up again + QStringList commands = rawCommand.split(QRegExp("; ?")); + foreach(QString command, commands) { + handleUserInput(bufferInfo, command); + } }