From 5d6cf9d8d56f9f3f781d1e6afa149f736868a108 Mon Sep 17 00:00:00 2001 From: David Plassmann Date: Tue, 9 Jan 2018 01:06:32 +0100 Subject: 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 --- main/src/ui/chat_input/view.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/src') 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; -- cgit v1.2.3-70-g09d2