summary refs log tree commit diff
path: root/src/TextInputWidget.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-29 00:42:46 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-29 00:42:46 +0100
commit75c5c011891739d5223ca53193797dc47e0e2a0c (patch)
tree575511ace543a19f50c3fb4c4fda7e28718a7b95 /src/TextInputWidget.cpp
parentMerge pull request #111 from Nheko-Reborn/better-build (diff)
parentAdd command for invite,kick,ban and unban (diff)
downloadnheko-75c5c011891739d5223ca53193797dc47e0e2a0c.tar.xz
Merge branch 'plain-text-messages' into 0.7.0-dev
Diffstat (limited to '')
-rw-r--r--src/TextInputWidget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp

index 7f5da009..502456bf 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp
@@ -605,6 +605,14 @@ TextInputWidget::command(QString command, QString args) sendEmoteMessage(args, input_->related); } else if (command == "join") { sendJoinRoomRequest(args); + } else if (command == "invite") { + sendInviteRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1)); + } else if (command == "kick") { + sendKickRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1)); + } else if (command == "ban") { + sendBanRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1)); + } else if (command == "unban") { + sendUnbanRoomRequest(args.section(' ', 0, 0), args.section(' ', 1, -1)); } else if (command == "shrug") { sendTextMessage("¯\\_(ツ)_/¯", input_->related); } else if (command == "fliptable") {