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

Fix: leave should not execute kick as user can't kick itself. #468

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

iwalkalone69
Copy link

When a user leaves an IRC channel this should execute leaveRoom instead of kickUser even if it has a reason. Otherwise it fails because user has no permission to kick himself.

@iwalkalone69 iwalkalone69 requested a review from a team as a code owner May 2, 2023 06:19
@Half-Shot
Copy link
Contributor

We introduced this as a way to leave with a reason, because it at least used to be the case that you can always kick yourself (which at a high level is the same as leaving, just with the option to leave a departing message). These days the spec supports leaving with a reason, so we should allow that.

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

Edit: And please sign off / add a changelog :)

src/components/intent.ts Outdated Show resolved Hide resolved
iwalkalone69 and others added 3 commits May 2, 2023 17:18
Co-authored-by: Will Hunt <will@half-shot.uk>
Signed-off-by: iwalkalone <iwalkalone69@gmail.com>
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