Skip to content
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

Support reformatting message via regex_replace() #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

burdoto
Copy link

@burdoto burdoto commented Dec 18, 2022

This is more an issue than a pull request; since I couldn't get my IDE to properly build the project and honestly I didn't do much C++ in the past, so I was unable to test or verify this code's integrity.

The main idea is to match any message_content from input against a user-defined regex and restructure that message using this regex inside an output string, all of that using regex_replace().
By default, the message would not be changed at all; that's why the default values (.*) and $1 are used.

This may be a little advanced for most users, but fairly its an advanced solution for an advanced problem; being able to simplify the output of messages that may be sent automatically into an IRC chat.

If this proposal is to be denied, I want to ask for further instructions about the development environment and using the result library inside ZNC, so that I can include this change in my own ZNC instance only.

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.

1 participant