adds callback command history support to these functions

This commit is contained in:
Madpeter 2020-04-26 01:37:35 +01:00
parent 2ec6055610
commit 990ddb38f9
3 changed files with 20 additions and 0 deletions

View file

@ -37,13 +37,27 @@ namespace BSB.Commands.Group
if (reply.Members.ContainsKey(target_avatar) == false)
{
ForRealGroupInvite(args, target_group, target_avatar);
base.Callback(args, e);
}
else
{
base.Callback(args, e, false);
}
}
else
{
ConsoleLog.Crit("Callback sent for the wrong group as part of group invite!");
base.Callback(args, e, false);
}
}
else
{
base.Callback(args, e, false);
}
}
else
{
base.Callback(args, e, false);
}
}
public override bool CallFunction(string[] args)

View file

@ -56,6 +56,7 @@ namespace BSB.Commands.Group
}
}
bot.GetCommandsInterface.SmartCommandReply(args[0], reply, CommandName);
base.Callback(args, e);
}
}
}

View file

@ -54,6 +54,11 @@ namespace BSB.Commands.Group
if (UUID.TryParse(args[0], out UUID targetgroup) == true)
{
bot.GetClient.Self.InstantMessageGroup(targetgroup, args[1]);
base.Callback(args, e);
}
else
{
base.Callback(args, e,false);
}
}
}