diff options
author | Wim <wim@42.be> | 2016-11-20 17:20:52 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-20 17:20:52 +0100 |
commit | e28649b5923f8a950c370de6a14fde3a8681b94b (patch) | |
tree | e45954f3af742414d7edf9c9c75cbe08d6fb17b1 | |
parent | e4e822ef6a202775fc89eb6dc0807b2350e2469f (diff) | |
download | matterbridge-msglm-e28649b5923f8a950c370de6a14fde3a8681b94b.tar.gz matterbridge-msglm-e28649b5923f8a950c370de6a14fde3a8681b94b.tar.bz2 matterbridge-msglm-e28649b5923f8a950c370de6a14fde3a8681b94b.zip |
Remove callbacks after being called. Fixes #88 (irc)
-rw-r--r-- | bridge/irc/irc.go | 2 |
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) { |