autoop-module: no case-sensitive #457

Closed
opened 2026-10-05 04:22:36 +02:00 by adam · 5 comments
Owner

pls fix that the users hostmask is case-sensitiv

pls fix that the users hostmask is case-sensitiv <!-- github-sync-id:55326848 -->
adam closed this issue 2026-10-05 04:22:36 +02:00
Author
Owner

Why should the users hostmask be considered case-sensitive when using the autoop module?

It makes no sense why case-sensitivity should matter - many IRC networks' vhosts/cloaks won't be 'case sensitive' enough to be an issue (in most networks), and rDNS lookups usually return as lowercase.

So back to my question, what's your reasoning here? (Also, use real english, not shorthand and crap.)

Why should the users hostmask be considered case-sensitive when using the autoop module? It makes no sense why case-sensitivity should matter - many IRC networks' vhosts/cloaks won't be 'case sensitive' enough to be an issue (in most networks), and rDNS lookups usually return as lowercase. So back to my question, what's your reasoning here? (Also, use _real english_, not shorthand and crap.) <!-- github-comment-id:71263706 -->
Author
Owner

if the users ident changes from 'username@...' to 'Username@...' the users added host is not recognized anymore.

if the users ident changes from 'username@...' to 'Username@...' the users added host is not recognized anymore. <!-- github-comment-id:71329647 -->
Author
Owner

Ah, so the issue is really that it should be case-insensitive. I think it is that, which version are you using? You can check with /msg *status version or running znc --version in terminal.

Ah, so the issue is really that it should be case-insensitive. I think it is that, which version are you using? You can check with `/msg *status version` or running `znc --version` in terminal. <!-- github-comment-id:71330034 -->
Author
Owner

ZNC 1.5-nightly-20140724-8a5e7ef8

ZNC 1.5-nightly-20140724-8a5e7ef8 <!-- github-comment-id:71335445 -->
Author
Owner

The module seems to use case sensitive CString::WildCmp(). Sprinkling some AsLower() calls somewhere around HostMatches() should help.

The module seems to use case sensitive CString::WildCmp(). Sprinkling some AsLower() calls somewhere around HostMatches() should help. <!-- github-comment-id:71336917 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#457