Skip to content

Commit

Permalink
Fix listener puppet detection (#80)
Browse files Browse the repository at this point in the history
We now detect our listener as a puppet to (halts displays of it joining
channels when JOIN/PART/QUIT is set to be shown).
  • Loading branch information
llmII authored Feb 14, 2021
1 parent 3928d5d commit 8838ded
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bridge/irc_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ func (i *ircListener) OnJoinChannel(e *irc.Event) {
}

func (i *ircListener) isPuppetNick(nick string) bool {
if i.GetNick() == nick {
return true
}
if _, ok := i.bridge.ircManager.puppetNicks[nick]; ok {
return true
}
Expand Down

0 comments on commit 8838ded

Please sign in to comment.