summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 22:13:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 22:13:50 +0300
commit81a7b06f2ff1fad4b012068b15975bdb5e86a0e4 (patch)
tree74719015e27e35928403aded155ac31abede5e6c /src/actions
parent1a652f220d1c74333cd2f54953dbaf41907314b6 (diff)
downloadmanaplus-81a7b06f2ff1fad4b012068b15975bdb5e86a0e4.tar.gz
manaplus-81a7b06f2ff1fad4b012068b15975bdb5e86a0e4.tar.bz2
manaplus-81a7b06f2ff1fad4b012068b15975bdb5e86a0e4.tar.xz
manaplus-81a7b06f2ff1fad4b012068b15975bdb5e86a0e4.zip
Move chat command /clear into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/chat.cpp10
-rw-r--r--src/actions/chat.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index 858b5acbb..74f3fc691 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -232,4 +232,14 @@ impHandler(query)
return true;
}
+impHandler0(clearChatTab)
+{
+ if (chatWindow)
+ {
+ chatWindow->clearTab();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/chat.h b/src/actions/chat.h
index fe35021be..8a5e3a3c8 100644
--- a/src/actions/chat.h
+++ b/src/actions/chat.h
@@ -37,6 +37,7 @@ namespace Actions
decHandler(scrollChatDown);
decHandler(msg);
decHandler(query);
+ decHandler(clearChatTab);
} // namespace Actions
#undef decHandler