-
Notifications
You must be signed in to change notification settings - Fork 173
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
Implement changing of sed response per channel (fixes #1433) #1556
Conversation
Thanks! Could you also make the In order for it to make sense, you can use two independent config variables, ie. |
Sure, I can look into it. |
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.
Can you add tests for the additional config options to SedRegex/test.py ?
Co-authored-by: Val Lorentz <progval+github@progval.net>
plugins/SedRegex/config.py
Outdated
@@ -57,6 +57,17 @@ def configure(advanced): | |||
conf.registerChannelValue(SedRegex, 'ignoreRegex', | |||
registry.Boolean(True, _("""Should Perl/sed regex replacing | |||
ignore messages which look like valid regex?"""))) | |||
conf.registerChannelValue(SedRegex, 'sedString', |
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.
I would name this variable formatString
and the other one formatString.other
so that their meaning is clearer just from their names. (To register a variable under another one you could do something like conf.registerChannelValue(SedRegex.formatString, 'other', ...)
LGTM otherwise!
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.
Just format
instead of formatString
@famfo thanks! |
No description provided.