fix: incorrect pk;config private <target> command parsing

This commit is contained in:
spiral
2021-12-07 01:58:05 -05:00
parent ad6addc2fd
commit cb1d4c98c7
2 changed files with 4 additions and 15 deletions

View File

@@ -320,10 +320,10 @@ public class Config
});
}
// todo: this command parsing is really messy
public async Task MemberDefaultPrivacy(Context ctx)
{
ctx.CheckSystem();
if (!ctx.HasNext())
{
if (ctx.Config.MemberDefaultPrivate) { await ctx.Reply("Newly created members will currently have their privacy settings set to private. To change this, type `pk;config private member off`"); }
@@ -348,8 +348,6 @@ public class Config
public async Task GroupDefaultPrivacy(Context ctx)
{
ctx.CheckSystem();
if (!ctx.HasNext())
{
if (ctx.Config.GroupDefaultPrivate) { await ctx.Reply("Newly created groups will currently have their privacy settings set to private. To change this, type `pk;config private group off`"); }
@@ -374,8 +372,6 @@ public class Config
public async Task ShowPrivateInfo(Context ctx)
{
ctx.CheckSystem();
if (!ctx.HasNext())
{
if (ctx.Config.ShowPrivateInfo) await ctx.Reply("Private information is currently **shown** when looking up your own info. Use the `-public` flag to hide it.");