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

Feature request: Configurable user/host masks #6

Open
florian-sander opened this issue Nov 11, 2015 · 4 comments
Open

Feature request: Configurable user/host masks #6

florian-sander opened this issue Nov 11, 2015 · 4 comments

Comments

@florian-sander
Copy link
Owner

When auto-adding users, stats.mod will currently identify them by creating something like ![username]@.[hostname]. That way, users will be identified independently of their actual nickname.

Several people have requested changes to this identification scheme, so It would be great if it could be configurable. Some examples of alternative methods:

![username]@[host] => use full host name
*![username]@
=> only use username on local machine
[nick]!@ => track strictly by nick

If someone wants to work on this, here is a hint where to start: in core\misc.c is a function called maskstricthost. If I remember correctly, this function is responsible for creating the host mask.

@TehPeGaSuS
Copy link

TehPeGaSuS commented Aug 13, 2017

That would be a must have. With so many free znc providers, webchats with almost fixed nicknames, etc. tracking by nickname would be the best option. Probably add a way to ignore common nicknames like Guest*, kiwi*, etc.
We depend on you now!
Please consider to make that an available option.
I'm no coder and I don't understand anything about coding, otherwise I'd be glad to help: :/
Best regards.

@TehPeGaSuS
Copy link

TehPeGaSuS commented Aug 17, 2017

Okay. While that option isn't a core option yet, here's a tcl script that will allow to track stats by nickname!*@*.
https://github.com/TheMythPT/MyScripts/blob/master/Eggdrop/statshack.tcl
Enjoy!!
/***************************************/
EDIT: ignore the script! Isn't working properly!

@TehPeGaSuS
Copy link

@florian-sander could you at least update it to use *[email protected]? It would solve some problems tho.

@TehPeGaSuS
Copy link

Okay.. I've edited my script again and it's ready to roll.
Check it here: https://github.com/TheMythPT/MyScripts/blob/master/Eggdrop/statshack.tcl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants