Skip to content

support cap away-notify #1099

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 2 commits into from
Aug 15, 2019
Merged

support cap away-notify #1099

merged 2 commits into from
Aug 15, 2019

Conversation

ailin-nemui
Copy link
Contributor

No description provided.

@@ -308,6 +342,7 @@ void fe_irc_messages_init(void)
signal_add_last("message irc notice", (SIGNAL_FUNC) sig_message_irc_notice);
signal_add_last("message irc own_ctcp", (SIGNAL_FUNC) sig_message_own_ctcp);
signal_add_last("message irc ctcp", (SIGNAL_FUNC) sig_message_irc_ctcp);
signal_add_last("message irc away", (SIGNAL_FUNC) sig_message_irc_away);
Copy link
Member

Choose a reason for hiding this comment

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

Is this the right location for this sort of event? All the others are channel-targeted and this one broadcasts, more like joins or quits, which aren't in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's a bit of a question. I felt this event belongs more to IRC than the generic code (where the joins and quits are)

but I think it could be argued either way. I can move it if you think that's better (the message would lose the `irc' bit)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah nevermind, didn't consider that all the other events are not irc specific, but this one certainly is. That grouping makes more sense than "channel-targeted"

(not that i'm a big fan of allowing irssi to support non-irc protocols, but, whatever, let's keep that design decision)

Copy link
Member

Choose a reason for hiding this comment

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

Wait nevermind you changed it since I originally wrote this comment. Oops. I.. also don't mind this other version. Like you said, can be argued either way.

Copy link
Member

Choose a reason for hiding this comment

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

This last version has it in the same file as the spread_server_message_to_windows function, which I'd say is the strongest argument so far.

@ailin-nemui
Copy link
Contributor Author

I added some commits to move the code to fe-common/core, we can either use these changes or throw them away

@ailin-nemui ailin-nemui merged commit 95d695d into irssi:master Aug 15, 2019
@ailin-nemui ailin-nemui deleted the away-notify branch October 11, 2019 20:39
@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