Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 9671bff3948bf82f86361a9889d0c1ba78c7e71e Author: Wim <wim@42.be> Date: Sun Nov 20 17:20:52 2016 +0000 Remove callbacks after being called. Fixes #88 (irc) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 1540c56..fe8dc74 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -1416 +1418 @@ 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) {