Remove callbacks after being called. Fixes #88 (irc)

This commit is contained in:
Wim 2016-11-20 17:20:52 +01:00
parent 94ea775232
commit cef64e01b3
1 changed files with 2 additions and 0 deletions

View File

@ -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) {