From dc33bb1755caac33abd9673b15d7af99a6d064ba Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Mon, 29 Aug 2022 18:40:44 +0100 Subject: [PATCH] Fix whitespace-only IRC messages not being sent despite changes in #133 --- bridge/irc_listener.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridge/irc_listener.go b/bridge/irc_listener.go index 13cbbb6..aca9e47 100644 --- a/bridge/irc_listener.go +++ b/bridge/irc_listener.go @@ -242,8 +242,7 @@ func (i *ircListener) OnPrivateMessage(e *irc.Event) { return } - if strings.TrimSpace(e.Message()) == "" || // Discord doesn't accept an empty message - i.isPuppetNick(e.Nick) || // ignore msg's from our puppets + if i.isPuppetNick(e.Nick) || // ignore msg's from our puppets i.bridge.ircManager.isIgnoredHostmask(e.Source) || //ignored hostmasks i.bridge.ircManager.isFilteredIRCMessage(e.Message()) { // filtered return