mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 12:50:27 +00:00
Remove callbacks after being called. Fixes #88 (irc)
This commit is contained in:
parent
94ea775232
commit
cef64e01b3
@ -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),
|
b.Remote <- config.Message{Username: b.Nick, Text: b.formatnicks(b.names[channel], continued),
|
||||||
Channel: channel, Account: b.Account}
|
Channel: channel, Account: b.Account}
|
||||||
b.names[channel] = nil
|
b.names[channel] = nil
|
||||||
|
b.i.ClearCallback(ircm.RPL_NAMREPLY)
|
||||||
|
b.i.ClearCallback(ircm.RPL_ENDOFNAMES)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Birc) handleNewConnection(event *irc.Event) {
|
func (b *Birc) handleNewConnection(event *irc.Event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user