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:30:53 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-29 00:30:53 +0100
commitb0ff1baa1d1c38523b5479a5191a5559f4c21bf6 (patch)
tree913c6e8d5062343f5876497b0917e9be60cb2db4 /src/TextInputWidget.cpp
parentFix newlines in plain text messages again (diff)
downloadnheko-b0ff1baa1d1c38523b5479a5191a5559f4c21bf6.tar.xz
Add command for invite,kick,ban and unban
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 b6b51980..52686c0f 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") {