summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-11-20 17:20:52 +0100
committerWim <wim@42.be>2016-11-20 17:21:21 +0100
commit07a560b2f54cd3a14f55820468cd9a0178883498 (patch)
treebf79405866b37fadf898a60b259ca4f21f94cde1
parent02bd1360405ac83dcc05499c4b92906de8459303 (diff)
downloadmatterbridge-msglm-07a560b2f54cd3a14f55820468cd9a0178883498.tar.gz
matterbridge-msglm-07a560b2f54cd3a14f55820468cd9a0178883498.tar.bz2
matterbridge-msglm-07a560b2f54cd3a14f55820468cd9a0178883498.zip
Remove callbacks after being called. Fixes #88 (irc)
-rw-r--r--bridge/irc/irc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index c7b6f207..4d21754f 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -160,6 +160,8 @@ func (b *Birc) endNames(event *irc.Event) {
b.Remote <- config.Message{Username: b.Nick, Text: b.formatnicks(b.names[channel], continued), Channel: channel,
Origin: b.origin, Protocol: b.protocol, FullOrigin: b.FullOrigin()}
b.names[channel] = nil
+ b.i.ClearCallback(ircm.RPL_NAMREPLY)
+ b.i.ClearCallback(ircm.RPL_ENDOFNAMES)
}
func (b *Birc) handleNewConnection(event *irc.Event) {