summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index b87dcf583..f650ac8d1 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -27,7 +27,7 @@
#include "channel.h"
#include "game.h"
#include "localplayer.h"
-#include "log.h"
+#include "logger.h"
#include "main.h"
#include "gui/chatwindow.h"
@@ -403,8 +403,14 @@ void CommandHandler::handleMsg(const std::string &args, ChatTab *tab)
void CommandHandler::handleQuery(const std::string &args, ChatTab *tab)
{
- if (chatWindow && chatWindow->addWhisperTab(args, true))
- return;
+ if (chatWindow)
+ {
+ if (chatWindow->addWhisperTab(args, true))
+ {
+ chatWindow->saveState();
+ return;
+ }
+ }
tab->chatLog(strprintf(_("Cannot create a whisper tab for nick \"%s\"! "
"It either already exists, or is you."),
@@ -736,14 +742,20 @@ void CommandHandler::handleCloseAll(const std::string &args A_UNUSED,
ChatTab *tab A_UNUSED)
{
if (chatWindow)
+ {
chatWindow->removeAllWhispers();
+ chatWindow->saveState();
+ }
}
void CommandHandler::handleIgnoreAll(const std::string &args A_UNUSED,
ChatTab *tab A_UNUSED)
{
if (chatWindow)
+ {
chatWindow->ignoreAllWhispers();
+ chatWindow->saveState();
+ }
}
void CommandHandler::handleOutfit(const std::string &args,