Revert "Clear existing IRC event handlers before connecting new ones (#1795)"

This reverts commit f044b948e2.

Fixes #1815
This commit is contained in:
Wim 2022-05-01 22:28:42 +02:00
parent 99fbd9cae6
commit e775a8a22e
No known key found for this signature in database
GPG Key ID: 5E423DA5C9AA63D4

View File

@ -122,7 +122,6 @@ func (b *Birc) handleNewConnection(client *girc.Client, event girc.Event) {
i := b.i
b.Nick = event.Params[0]
i.Handlers.ClearAll()
i.Handlers.AddBg("PRIVMSG", b.handlePrivMsg)
i.Handlers.AddBg("CTCP_ACTION", b.handlePrivMsg)
i.Handlers.Add(girc.RPL_TOPICWHOTIME, b.handleTopicWhoTime)