matterbridge
matterbridge copied to clipboard
irc: do not bridge CTCP commands other than ACTION
CTCP commands other than ACTION are designed for client-to-client interaction on IRC networks. Drop such messages when we receive them.
Also get rid of a "CTCP_ACTION" handler in the handler registration. The registration
- can't do anything (if anything, we wanted the string constant girc.CTCP_ACTION, which is "ACTION")
- doesn't do anything in this context, because CTCP handlers are registered separately: https://github.com/lrstanley/girc/blob/f47717952bf9258e02eac14f1b9723bcf084e618/ctcp.go#L205
The PRIVMSG handler already listens to all CTCPs.
Thanks to @lexande for the bug report (found on a live instance).
Code Climate has analyzed commit b862dc34 and detected 0 issues on this pull request.
View more on Code Climate.
Thanks 👍