adds callback command history support to these functions
This commit is contained in:
parent
2ec6055610
commit
990ddb38f9
3 changed files with 20 additions and 0 deletions
|
|
@ -37,13 +37,27 @@ namespace BSB.Commands.Group
|
||||||
if (reply.Members.ContainsKey(target_avatar) == false)
|
if (reply.Members.ContainsKey(target_avatar) == false)
|
||||||
{
|
{
|
||||||
ForRealGroupInvite(args, target_group, target_avatar);
|
ForRealGroupInvite(args, target_group, target_avatar);
|
||||||
|
base.Callback(args, e);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
base.Callback(args, e, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ConsoleLog.Crit("Callback sent for the wrong group as part of group invite!");
|
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)
|
public override bool CallFunction(string[] args)
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ namespace BSB.Commands.Group
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bot.GetCommandsInterface.SmartCommandReply(args[0], reply, CommandName);
|
bot.GetCommandsInterface.SmartCommandReply(args[0], reply, CommandName);
|
||||||
|
base.Callback(args, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,11 @@ namespace BSB.Commands.Group
|
||||||
if (UUID.TryParse(args[0], out UUID targetgroup) == true)
|
if (UUID.TryParse(args[0], out UUID targetgroup) == true)
|
||||||
{
|
{
|
||||||
bot.GetClient.Self.InstantMessageGroup(targetgroup, args[1]);
|
bot.GetClient.Self.InstantMessageGroup(targetgroup, args[1]);
|
||||||
|
base.Callback(args, e);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
base.Callback(args, e,false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue