Skip to content

Add better support for numeric 489 ERR_SECUREONLYCHAN along with a print format #1196

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 5 commits into from
May 16, 2020
Merged

Conversation

mh-source
Copy link
Contributor

This is a first attempt at adding support for numeric 489 as ERR_SECUREONLYCHAN in addition to the already supported ERR_VOICENEEDED. To fix my own submitted issue #1193

It adds a new event_489 handler and the format string 'joinerror_secure_only'. but it is not unlikely i have missed some other (required) details for adding a numeric and format string.

It is ofcourse tested (at least for ERR_SECUREONLYCHAN, i dont know where it is used as ERR_VOICENEEDED so cant test triggering that) and "it works on my computer" :-)

modified: src/fe-common/irc/fe-events-numeric.c
modified: src/fe-common/irc/module-formats.c
modified: src/fe-common/irc/module-formats.h

…int format

modified:   src/fe-common/irc/fe-events-numeric.c
modified:   src/fe-common/irc/module-formats.c
modified:   src/fe-common/irc/module-formats.h
@ailin-nemui
Copy link
Contributor

thanks :-)

Michael Hansen added 3 commits May 16, 2020 00:48
modified:   src/common.h
modified:   src/fe-common/irc/fe-events-numeric.c
…mat strictnes got tightened

modified:   src/fe-common/irc/fe-events-numeric.c
modified:   src/fe-common/irc/module-formats.c
modified:   src/fe-common/irc/module-formats.h
@mh-source
Copy link
Contributor Author

Now the failed tests have been fixed and I tested the ERR_VOICENEEDED on undernet with success. Hopefully no more loose ends.

…bove it.

modified:   src/fe-common/irc/fe-events-numeric.c
@ailin-nemui
Copy link
Contributor

@irssi/developers

@dequis
Copy link
Member

dequis commented May 16, 2020

Sure, looks solid. We should do something about those clang-format off at some point later (shouldn't block this, good to keep them as a marker)

@ailin-nemui ailin-nemui merged commit 2a2f7b8 into irssi:master May 16, 2020
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants