mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 14:27:54 +00:00
Practice better disposal hygiene
This commit is contained in:
parent
3fdfaeab01
commit
58cdb04ab9
2 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue