remote_avatars: support msg.Account

This commit is contained in:
Qais Patankar
2020-02-09 12:30:35 +00:00
parent ae27c7e63a
commit 0561c332dd

View File

@@ -384,7 +384,7 @@ func (b *Bdiscord) webhookSend(msg *config.Message, webhookID, token string) (*d
// If avatar is unset, maybe we need to set the local avatar
if msg.Avatar == "" {
for _, val := range b.GetStringSlice("UseLocalAvatar") {
if msg.Protocol != val {
if msg.Protocol != val && msg.Account != val {
continue
}
if avatar, ok := b.findAvatar(msg); ok {