diff options
author | Wim <wim@42.be> | 2022-03-12 17:33:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 17:33:39 +0100 |
commit | c30e90ff3f7e9ff96ac79ed4b7d90d6346216a15 (patch) | |
tree | 844c6f7954caedfd4669b1bc120e41bd8af6c039 /bridge/irc | |
parent | e4c0ca0f4807a36a6cc0ea5f793905539afa4648 (diff) | |
download | matterbridge-msglm-c30e90ff3f7e9ff96ac79ed4b7d90d6346216a15.tar.gz matterbridge-msglm-c30e90ff3f7e9ff96ac79ed4b7d90d6346216a15.tar.bz2 matterbridge-msglm-c30e90ff3f7e9ff96ac79ed4b7d90d6346216a15.zip |
Fix panic in irc. Closes #1751 (#1760)
Diffstat (limited to 'bridge/irc')
-rw-r--r-- | bridge/irc/irc.go | 6 |
1 files 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 { |