summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 15:27:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 15:27:04 +0300
commit35e14007fe44877b160c48db1d4106eba6306859 (patch)
treebd3692d2c37aab8e38a2444f0cdf0f0ed5ec4232 /src/actions
parentdded1355609c8f23281f78ec719b09b1693ea717 (diff)
downloadmanaverse-35e14007fe44877b160c48db1d4106eba6306859.tar.gz
manaverse-35e14007fe44877b160c48db1d4106eba6306859.tar.bz2
manaverse-35e14007fe44877b160c48db1d4106eba6306859.tar.xz
manaverse-35e14007fe44877b160c48db1d4106eba6306859.zip
Move chat command /ignoreallwhispers into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/chat.cpp11
-rw-r--r--src/actions/chat.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index 9895d8388..d69895af3 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -123,6 +123,17 @@ impHandler0(closeAllChatTabs)
return false;
}
+impHandler0(ignoreAllWhispers)
+{
+ if (chatWindow)
+ {
+ chatWindow->ignoreAllWhispers();
+ chatWindow->saveState();
+ return true;
+ }
+ return false;
+}
+
impHandler0(scrollChatUp)
{
if (chatWindow && chatWindow->isWindowVisible())
diff --git a/src/actions/chat.h b/src/actions/chat.h
index bdb62e209..8d0003e73 100644
--- a/src/actions/chat.h
+++ b/src/actions/chat.h
@@ -32,6 +32,7 @@ namespace Actions
decHandler(nextChatTab);
decHandler(closeChatTab);
decHandler(closeAllChatTabs);
+ decHandler(ignoreAllWhispers);
decHandler(scrollChatUp);
decHandler(scrollChatDown);
} // namespace Actions