From 8b9829b4fd8956023da96dd8435e255ed4c9be76 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Dec 2014 13:38:58 +0300 Subject: add chat command for insert text into input field. New chat command: /addtext TEXT Alias: /textadd TEXT --- src/actions/chat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/actions/chat.cpp') diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 8c5a8ebb4..f6135c674 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -450,4 +450,11 @@ impHandler(kickParty) return true; } +impHandler(addText) +{ + if (chatWindow) + chatWindow->addInputText(event.args); + return true; +} + } // namespace Actions -- cgit v1.2.3-70-g09d2