znc --makeconf username does not correctly allow alphanumeric #739

Closed
opened 2026-10-05 04:42:00 +02:00 by adam · 2 comments
Owner

znc --makeconf
username validation does not correctly allow all alphanumerics.

e.g try "77abc" this will be rejected, then try "abc77" this will be accepted. Both should be valid alphanumeric.

`znc --makeconf` username validation does not correctly allow all alphanumerics. e.g try "77abc" this will be rejected, then try "abc77" this will be accepted. Both should be valid alphanumeric. <!-- github-sync-id:193246381 -->
adam closed this issue 2026-10-05 04:42:00 +02:00
Author
Owner

I think the IRC RFC forbids usernames from starting with numbers and I didn't check, but I think ZNC uses username as the default nickname, so I don't think this is an issue.

I think the IRC RFC forbids usernames from starting with numbers and I didn't check, but I think ZNC uses username as the default nickname, so I don't think this is an issue. <!-- github-comment-id:264699072 -->
Author
Owner

Ah yes
nickname = ( letter / special ) *8( letter / digit / special / "-" )
From section 2.3.1

Thanks!

Ah yes `nickname = ( letter / special ) *8( letter / digit / special / "-" )` From [section 2.3.1](https://tools.ietf.org/html/rfc2812#section-2.3.1) Thanks! <!-- github-comment-id:264895713 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#739