diff options
author | Wim <wim@42.be> | 2016-11-20 17:20:52 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-20 17:21:15 +0100 |
commit | cef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf (patch) | |
tree | b4ee72bfcbd32e649fc38130ea3edbe094689724 | |
parent | 94ea775232eabfd3945ef9b5d6e93e3505fd4a99 (diff) | |
download | matterbridge-msglm-cef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf.tar.gz matterbridge-msglm-cef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf.tar.bz2 matterbridge-msglm-cef64e01b3aa653fbc7be91fc7ae96dd57ffd2bf.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 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) { |