Fix Proxied Messages Ignored

This commit is contained in:
Fennel 2020-04-24 17:21:02 -04:00 committed by Astrid
parent 949dae6561
commit ebaded4bbd

View File

@ -86,7 +86,7 @@ namespace PluralKit.Bot
public async Task HandleMessageAsync(DiscordClient client, GuildConfig guild, CachedAccount account, DiscordMessage message, bool doAutoProxy) public async Task HandleMessageAsync(DiscordClient client, GuildConfig guild, CachedAccount account, DiscordMessage message, bool doAutoProxy)
{ {
// Bail early if this isn't in a guild channel // Bail early if this isn't in a guild channel
if (message.Channel.Guild != null) return; if (message.Channel.Guild == null) return;
// Find a member with proxy tags matching the message // Find a member with proxy tags matching the message
var match = GetProxyTagMatch(message.Content, account.System, account.Members); var match = GetProxyTagMatch(message.Content, account.System, account.Members);