Skip to content

Support reformatting message via regex_replace() - #267

Open
burdoto wants to merge 1 commit into
amyreese:masterfrom
burdoto:dev-regex
Open

burdoto wants to merge 1 commit into
amyreese:masterfrom
burdoto:dev-regex

Conversation

@burdoto

@burdoto burdoto commented Dec 18, 2022 •

Copy link
Copy Markdown

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