From 8838dedf742f1ce874343b6373bcf8c0f826f24e Mon Sep 17 00:00:00 2001 From: llmII <40866124+llmII@users.noreply.github.com> Date: Sun, 14 Feb 2021 07:56:20 -0600 Subject: [PATCH] Fix listener puppet detection (#80) We now detect our listener as a puppet to (halts displays of it joining channels when JOIN/PART/QUIT is set to be shown). --- bridge/irc_listener.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bridge/irc_listener.go b/bridge/irc_listener.go index cd82b35..1400143 100644 --- a/bridge/irc_listener.go +++ b/bridge/irc_listener.go @@ -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 }