From cef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 20 Nov 2016 17:20:52 +0100 Subject: Remove callbacks after being called. Fixes #88 (irc) --- bridge/irc/irc.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bridge') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 1540c56f..fe8dc741 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -141,6 +141,8 @@ func (b *Birc) endNames(event *irc.Event) { b.Remote <- config.Message{Username: b.Nick, Text: b.formatnicks(b.names[channel], continued), Channel: channel, Account: b.Account} b.names[channel] = nil + b.i.ClearCallback(ircm.RPL_NAMREPLY) + b.i.ClearCallback(ircm.RPL_ENDOFNAMES) } func (b *Birc) handleNewConnection(event *irc.Event) { -- cgit v1.2.3