mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-17 14:32:00 -08:00
Revert "Clear existing IRC event handlers before connecting new ones (#1795)"
This reverts commit f044b948e2
.
Fixes #1815
This commit is contained in:
parent
99fbd9cae6
commit
e775a8a22e
@ -122,7 +122,6 @@ func (b *Birc) handleNewConnection(client *girc.Client, event girc.Event) {
|
|||||||
i := b.i
|
i := b.i
|
||||||
b.Nick = event.Params[0]
|
b.Nick = event.Params[0]
|
||||||
|
|
||||||
i.Handlers.ClearAll()
|
|
||||||
i.Handlers.AddBg("PRIVMSG", b.handlePrivMsg)
|
i.Handlers.AddBg("PRIVMSG", b.handlePrivMsg)
|
||||||
i.Handlers.AddBg("CTCP_ACTION", b.handlePrivMsg)
|
i.Handlers.AddBg("CTCP_ACTION", b.handlePrivMsg)
|
||||||
i.Handlers.Add(girc.RPL_TOPICWHOTIME, b.handleTopicWhoTime)
|
i.Handlers.Add(girc.RPL_TOPICWHOTIME, b.handleTopicWhoTime)
|
||||||
|
Loading…
Reference in New Issue
Block a user