Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irc: do not bridge CTCP commands other than ACTION #2090

Merged
merged 1 commit into from May 23, 2024

Conversation

patrickxia
Copy link
Contributor

@patrickxia patrickxia commented Oct 23, 2023

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

  1. can't do anything (if anything, we wanted the string constant
    girc.CTCP_ACTION, which is "ACTION")
  2. 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).

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.

This

1) can't do anything (if anything, we wanted the string constant
   girc.CTCP_ACTION, which is "ACTION")
2) 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).
@codeclimate
Copy link

codeclimate bot commented Oct 23, 2023

Code Climate has analyzed commit b862dc3 and detected 0 issues on this pull request.

View more on Code Climate.

@42wim 42wim added this to the 1.27.0 milestone May 23, 2024
@42wim 42wim merged commit 0bb5215 into 42wim:master May 23, 2024
@42wim
Copy link
Owner

42wim commented May 23, 2024

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants