-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add support for ignoring IRC hosts from Discord #82
Conversation
Tested now and added documentation. Should be ready for checking. |
37b64dd
to
17db5d4
Compare
This should add a configuration option that allows for using nearly IRC style hostmasks to "ban" matching users in IRC from sending messages towards Discord. This would be useful for ignoring bots in channels.
17db5d4
to
2193fed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
And yeah I agree with your judgement call — it's probably fine matching every time. It would be useful to add live reload here in the future, it seems like it wouldn't be too hard to implement! |
Live reload? as in if the config changes and irc_ignored_hostmasks are changed it stops/starts ignoring added/removed hostmasks? If so that's already done but if not let me know what you meant by live reload and I'll likely add it to my list of things to get after. |
Ah, okay, awesome :) I keep thinking the "requires restart" column is a "supports live reload" column haha |
This should add a configuration option that allows for using nearly IRC style hostmasks to "ban" matching users in IRC from sending messages towards Discord. This would be useful for ignoring bots in channels.
Submitting this as a draft because there might be something else that would be wanted but am not sure if it's worth the effort or the tradeoff.
Should we cache matches (as in, if a nick matches once, cache it until config reload)? The tradeoff is memory for speed. I'm not certain this will have a speed issue until ignoring probably thousands of hosts from IRC.
Will add the appropriate documentation and such after having actually tested that this works as believed it should.Tested, works, documentation and configuration example added.