From 81a7b06f2ff1fad4b012068b15975bdb5e86a0e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Aug 2014 22:13:50 +0300 Subject: Move chat command /clear into actions. --- src/actions/chat.cpp | 10 ++++++++++ src/actions/chat.h | 1 + 2 files changed, 11 insertions(+) (limited to 'src/actions') 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 -- cgit v1.2.3-70-g09d2