From e405e7930e4d17b62c63c63b805c8c66a7b5eef7 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Wed, 24 Mar 2021 04:03:38 +0000 Subject: [PATCH] corrects group active group incorrect args --- Core/Commands/Group.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/Commands/Group.cs b/Core/Commands/Group.cs index 8b9821f..a6369af 100644 --- a/Core/Commands/Group.cs +++ b/Core/Commands/Group.cs @@ -374,22 +374,22 @@ namespace BetterSecondBot.HttpService [ReturnHints("Invaild group UUID")] [ArgHints("group", "URLARG", "the UUID of the group")] [Route(HttpVerbs.Get, "/GroupActiveGroup/{group}/{token}")] - public object GroupActiveGroup(string group, string role, string token) + public object GroupActiveGroup(string group, string token) { if (tokens.Allow(token, "groups", "GroupActiveGroup", handleGetClientIP()) == false) { - return Failure("Token not accepted", "GroupActiveGroup", new string[] { group, role }); + return Failure("Token not accepted", "GroupActiveGroup", new string[] { group }); } if (UUID.TryParse(group, out UUID groupuuid) == false) { - return Failure("Invaild group UUID", "GroupActiveGroup", new string[] { group, role }); + return Failure("Invaild group UUID", "GroupActiveGroup", new string[] { group }); } if (bot.MyGroups.ContainsKey(groupuuid) == false) { - return Failure("Unknown group", "GroupActiveGroup", new string[] { group, role }); + return Failure("Unknown group", "GroupActiveGroup", new string[] { group }); } bot.GetClient.Groups.ActivateGroup(groupuuid); - return BasicReply("Switching active group", "GroupActiveGroup", new string[] { group, role }); + return BasicReply("Switching active group", "GroupActiveGroup", new string[] { group }); } [About("Sends a group notice with an attachment")]