Skip to content

Commit

Permalink
Fix whitespace-only IRC messages not being sent despite changes in #133
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano authored and siniStar7 committed Sep 7, 2022
1 parent 543bd60 commit dc33bb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bridge/irc_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc33bb1

Please sign in to comment.