Skip to content

show invites of other users when provided #1094

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

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

ailin-nemui
Copy link
Contributor

No description provided.

Copy link
Member

@dequis dequis left a comment

Choose a reason for hiding this comment

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

Sounds good!

signal_emit("message invite", 4,
server, get_visible_target(server, channel), nick, addr);
params = event_get_params(data, 2, &invited, &channel);
if (server->nick_comp_func(invited, server->nick) == 0) {
Copy link
Member

@dequis dequis Aug 15, 2019

Choose a reason for hiding this comment

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

Out-of-scope but this function seems very underused for own-nick comparisons in other parts of the codebase, those seem to prefer g_ascii_strcasecmp which is going to be less accurate than this one.


ignore_check_plus(server, nick, address, channel, invited, &level, FALSE);

str = show_lowascii(channel);
Copy link
Member

Choose a reason for hiding this comment

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

TIL about this function! Seems like the point is to prevent people from introducing color codes in channel names to trick others into joining channels they don't actually trust, which makes sense for incoming invites for you.

For invites to other people in channels you already are part of, it doesn't make as much sense.

But harmless, so I don't mind if you keep it this way.

@ailin-nemui ailin-nemui merged commit 506f2fb into irssi:master Aug 15, 2019
@ailin-nemui ailin-nemui deleted the cap-invite-notify branch August 15, 2019 14:31
@ailin-nemui ailin-nemui added this to the 1.3.0 milestone Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants