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

This reverts commit f044b948e2.

Fixes #1815
pull/1822/head
Wim 2 years ago
parent 99fbd9cae6
commit e775a8a22e
No known key found for this signature in database
GPG Key ID: 5E423DA5C9AA63D4

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

Loading…
Cancel
Save