Practice better disposal hygiene

This commit is contained in:
Ske
2019-12-23 01:58:10 +01:00
parent 3fdfaeab01
commit 58cdb04ab9
2 changed files with 11 additions and 8 deletions

View File

@@ -95,7 +95,7 @@ namespace PluralKit.Bot
if (!await EnsureBotPermissions(channel)) return;
// Can't proxy a message with no content and no attachment
if (match.InnerText.Trim().Length == 0 && message.Attachments.Count == 0)
if (match.InnerText.Trim().Length == 0/* && message.Attachments.Count == 0*/) // TODO: undo when adding attachments back
return;
// Get variables in order and all