Properly target system find

This commit is contained in:
Ske 2020-02-13 20:25:00 +01:00
parent a76d7a6777
commit 268eabb047

View File

@ -216,7 +216,7 @@ namespace PluralKit.Bot
else if (ctx.Match("list", "l", "members")) else if (ctx.Match("list", "l", "members"))
await ctx.Execute<SystemList>(SystemList, m => m.MemberList(ctx, target)); await ctx.Execute<SystemList>(SystemList, m => m.MemberList(ctx, target));
else if (ctx.Match("find", "search", "query", "fd", "s")) else if (ctx.Match("find", "search", "query", "fd", "s"))
await ctx.Execute<SystemList>(SystemFind, m => m.MemberFind(ctx, ctx.System)); await ctx.Execute<SystemList>(SystemFind, m => m.MemberFind(ctx, target));
else if (ctx.Match("f", "front", "fronter", "fronters")) else if (ctx.Match("f", "front", "fronter", "fronters"))
{ {
if (ctx.Match("h", "history")) if (ctx.Match("h", "history"))