summaryrefslogtreecommitdiffstats
path: root/bridge/irc
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/irc')
-rw-r--r--bridge/irc/irc.go6
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 {