mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-21 22:44:23 +00:00
Allow spaces in nick for affiliate command (#1170)
This commit is contained in:
parent
f422734cc8
commit
b3d452265f
1 changed files with 5 additions and 3 deletions
|
@ -122,9 +122,11 @@ public class ChatInputController : Object {
|
|||
return;
|
||||
case "/affiliate":
|
||||
if (token.length > 1) {
|
||||
string[] user_role = token[1].split(" ", 2);
|
||||
if (user_role.length == 2) {
|
||||
stream_interactor.get_module(MucManager.IDENTITY).change_affiliation(conversation.account, conversation.counterpart, user_role[0].strip(), user_role[1].strip());
|
||||
string[] user_role = token[1].split(" ");
|
||||
if (user_role.length >= 2) {
|
||||
string nick = string.joinv(" ", user_role[0:user_role.length - 1]).strip();
|
||||
string role = user_role[user_role.length - 1].strip();
|
||||
stream_interactor.get_module(MucManager.IDENTITY).change_affiliation(conversation.account, conversation.counterpart, nick, role);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue