aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/chat_input_controller.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-10-16 03:25:44 +0200
committerfiaxh <git@lightrise.org>2019-10-16 03:32:22 +0200
commitf34aa58626980e199b9e68532661c3ed0487771a (patch)
tree7eded68797cfab7467493effbfa6ebce4ad6ce8a /main/src/ui/chat_input_controller.vala
parent8e6db8859c756ef2445e1f5277103d83c735c726 (diff)
downloaddino-f34aa58626980e199b9e68532661c3ed0487771a.tar.gz
dino-f34aa58626980e199b9e68532661c3ed0487771a.zip
Fix slash commands
Diffstat (limited to 'main/src/ui/chat_input_controller.vala')
-rw-r--r--main/src/ui/chat_input_controller.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/chat_input_controller.vala b/main/src/ui/chat_input_controller.vala
index 413b8bd5..c386f55e 100644
--- a/main/src/ui/chat_input_controller.vala
+++ b/main/src/ui/chat_input_controller.vala
@@ -82,8 +82,8 @@ public class ChatInputController : Object {
string text = chat_input.text_input.buffer.text;
chat_input.text_input.buffer.text = "";
- if (chat_input.text.has_prefix("/")) {
- string[] token = chat_input.text.split(" ", 2);
+ if (text.has_prefix("/")) {
+ string[] token = text.split(" ", 2);
switch(token[0]) {
case "/me":
// Just send as is.