aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorDavid Plassmann <slaveriq@users.noreply.github.com>2018-01-09 01:06:32 +0100
committerfiaxh <fiaxh@users.noreply.github.com>2018-01-09 01:06:32 +0100
commit5d6cf9d8d56f9f3f781d1e6afa149f736868a108 (patch)
treeb69cbc3398f845e7e0b612fc0d919125980380a7 /main/src
parent2e041e2984fa303034a9736918631935c52ac03a (diff)
downloaddino-5d6cf9d8d56f9f3f781d1e6afa149f736868a108.tar.gz
dino-5d6cf9d8d56f9f3f781d1e6afa149f736868a108.zip
Add support for setting a new Affiliation in a muc (#266)
* Added support for setting a new Affiliation in a muc * small changes * fix parameter order
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/chat_input/view.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/ui/chat_input/view.vala b/main/src/ui/chat_input/view.vala
index 9b4a585c..007e5379 100644
--- a/main/src/ui/chat_input/view.vala
+++ b/main/src/ui/chat_input/view.vala
@@ -76,6 +76,10 @@ public class View : Box {
case "/kick":
stream_interactor.get_module(MucManager.IDENTITY).kick(conversation.account, conversation.counterpart, token[1]);
return;
+ case "/affiliate":
+ string[] user_role = token[1].split(" ", 2);
+ stream_interactor.get_module(MucManager.IDENTITY).change_affiliation(conversation.account, conversation.counterpart, user_role[0].strip(), user_role[1].strip());
+ return;
case "/nick":
stream_interactor.get_module(MucManager.IDENTITY).change_nick(conversation.account, conversation.counterpart, token[1]);
return;