X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fuserinputhandler.cpp;h=87d37df1dba5ae99fb785b5aa079df3a68b9932e;hp=8fe87b0396a5a6fc74bc1c75ec2bee898621f997;hb=62ff1c782104674e29df9e4744d9b41133b1eb7d;hpb=a097148feeb46a612c594e77a7a1b620aae2f851 diff --git a/src/core/userinputhandler.cpp b/src/core/userinputhandler.cpp index 8fe87b03..87d37df1 100644 --- a/src/core/userinputhandler.cpp +++ b/src/core/userinputhandler.cpp @@ -36,6 +36,8 @@ UserInputHandler::UserInputHandler(CoreNetwork *parent) void UserInputHandler::handleUserInput(const BufferInfo &bufferInfo, const QString &msg_) { if(msg_.isEmpty()) return; + + // FIXME: With protocol >= v10, this is all done in the client -> remove QString cmd; QString msg = msg_; // leading slashes indicate there's a command to call unless there is another one in the first section (like a path /proc/cpuinfo) @@ -391,6 +393,7 @@ void UserInputHandler::handleWhowas(const BufferInfo &bufferInfo, const QString emit putCmd("WHOWAS", serverEncode(msg.split(' '))); } +// FIXME: Remove alias handling as soon as core protocol >= v10 void UserInputHandler::defaultHandler(QString cmd, const BufferInfo &bufferInfo, const QString &msg) { for(int i = 0; i < coreSession()->aliasManager().count(); i++) { if(coreSession()->aliasManager()[i].name.toLower() == cmd.toLower()) {