makes the code easyer to understand
This commit is contained in:
parent
176a30ecaa
commit
072faf7d03
1 changed files with 4 additions and 8 deletions
|
|
@ -14,8 +14,7 @@ namespace BSB.Commands.Group
|
||||||
{
|
{
|
||||||
if (base.CallFunction(args) == true)
|
if (base.CallFunction(args) == true)
|
||||||
{
|
{
|
||||||
UUID group_uuid = UUID.Zero;
|
if (UUID.TryParse(args[0], out UUID group_uuid) != true)
|
||||||
if(UUID.TryParse(args[0],out group_uuid) == false)
|
|
||||||
{
|
{
|
||||||
foreach (KeyValuePair<UUID, OpenMetaverse.Group> G in bot.MyGroups)
|
foreach (KeyValuePair<UUID, OpenMetaverse.Group> G in bot.MyGroups)
|
||||||
{
|
{
|
||||||
|
|
@ -25,16 +24,13 @@ namespace BSB.Commands.Group
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (group_uuid == UUID.Zero)
|
|
||||||
{
|
|
||||||
return Failed("Unable to find group");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (group_uuid != UUID.Zero)
|
if (group_uuid != UUID.Zero)
|
||||||
{
|
{
|
||||||
bot.GetClient.Groups.ActivateGroup(group_uuid);
|
bot.GetClient.Groups.ActivateGroup(group_uuid);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
return Failed("Unable to find group");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue