diff options
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r-- | src/actions/chat.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 2c7d84f91..59b69b911 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -20,6 +20,7 @@ #include "actions/chat.h" +#include "configuration.h" #include "guildmanager.h" #include "actions/actiondef.h" @@ -244,6 +245,22 @@ impHandler(msg) return true; } +impHandler(msgText) +{ + if (!chatWindow) + return false; + + if (config.getBoolValue("whispertab")) + { + chatWindow->localChatInput("/q " + event.args); + } + else + { + chatWindow->addInputText(std::string("/w \"").append( + event.args).append("\" ")); + } +} + impHandler(msg2) { std::string recvnick; |