From c30e90ff3f7e9ff96ac79ed4b7d90d6346216a15 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 12 Mar 2022 17:33:39 +0100 Subject: Fix panic in irc. Closes #1751 (#1760) --- bridge/irc/irc.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 4b7b144b..7202df5e 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -362,8 +362,10 @@ func (b *Birc) skipPrivMsg(event girc.Event) bool { return true } // don't forward message from ourself - if event.Source.Name == b.Nick { - return true + if event.Source != nil { + if event.Source.Name == b.Nick { + return true + } } // don't forward messages we sent via RELAYMSG if relayedNick, ok := event.Tags.Get("draft/relaymsg"); ok && relayedNick == b.Nick { -- cgit v1.2.3