summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-14 13:38:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-14 13:38:58 +0300
commit8b9829b4fd8956023da96dd8435e255ed4c9be76 (patch)
treeeb7df1f196989a93534dd4dd62a89df103ea364e /src/actions/chat.cpp
parent84c7b06f58eff82b17fd7ccd6708b9e972b40c60 (diff)
downloadplus-8b9829b4fd8956023da96dd8435e255ed4c9be76.tar.gz
plus-8b9829b4fd8956023da96dd8435e255ed4c9be76.tar.bz2
plus-8b9829b4fd8956023da96dd8435e255ed4c9be76.tar.xz
plus-8b9829b4fd8956023da96dd8435e255ed4c9be76.zip
add chat command for insert text into input field.
New chat command: /addtext TEXT Alias: /textadd TEXT
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp7
1 files changed, 7 insertions, 0 deletions
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