diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-23 15:27:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-23 15:27:04 +0300 |
commit | 35e14007fe44877b160c48db1d4106eba6306859 (patch) | |
tree | bd3692d2c37aab8e38a2444f0cdf0f0ed5ec4232 /src/actions | |
parent | dded1355609c8f23281f78ec719b09b1693ea717 (diff) | |
download | plus-35e14007fe44877b160c48db1d4106eba6306859.tar.gz plus-35e14007fe44877b160c48db1d4106eba6306859.tar.bz2 plus-35e14007fe44877b160c48db1d4106eba6306859.tar.xz plus-35e14007fe44877b160c48db1d4106eba6306859.zip |
Move chat command /ignoreallwhispers into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/chat.cpp | 11 | ||||
-rw-r--r-- | src/actions/chat.h | 1 |
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 |