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

Remove prefixes #11

Open
ipimpat opened this issue Dec 28, 2014 · 3 comments
Open

Remove prefixes #11

ipimpat opened this issue Dec 28, 2014 · 3 comments

Comments

@ipimpat
Copy link

ipimpat commented Dec 28, 2014

How to "remove" the message prefixes when:

/msg *fish SetConfig prefix_encrypted (+)
/msg *fish SetConfig prefix_decrypted (-)

Doesn't allow to set "empty" values?

@DanielOaks
Copy link
Contributor

Oh, I see. This is caused by my silly comparison at https://github.com/dctrwatson/znc-fish/blob/master/fish.cpp#L582 and assuming that nobody would want to set an empty value.

In that if statement, I'll probably just check the value (prefix_en/decrypted) and if it's a valid config option, set the appropriate 'empty' value (empty string for prefix_encrypted/decrypted, whatever else for other values)

Sorry for the trouble! I'll try to get around to it sometime soon.

@ipimpat
Copy link
Author

ipimpat commented Dec 28, 2014

Currently I work around it by editing the .registry file for each user and restarting ZNC

@DanielOaks
Copy link
Contributor

Yep, that makes sense and is probably the only way to do it for now. I haven't been doing as much ZNC coding recently but I'll try to get 'round to it in the next few days and submit a PR. Thanks for submitting the issue.

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

No branches or pull requests

2 participants