summaryrefslogtreecommitdiffstats
path: root/bridge
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:15 +0100
commitcef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf (patch)
treeb4ee72bfcbd32e649fc38130ea3edbe094689724 /bridge
parent94ea775232eabfd3945ef9b5d6e93e3505fd4a99 (diff)
downloadmatterbridge-msglm-cef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf.tar.gz
matterbridge-msglm-cef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf.tar.bz2
matterbridge-msglm-cef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf.zip
Remove callbacks after being called. Fixes #88 (irc)
Diffstat (limited to 'bridge')
-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 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) {