indrora / Atomic

Atomic: an IRC client from the ashes of yaaic
https://indrora.github.io/Atomic/
GNU General Public License v3.0
123 stars 29 forks source link

Brackets in nicknames aren't being allowed #117

Open d3-X-t3r opened 8 years ago

d3-X-t3r commented 8 years ago

In the server settings, Atomic isn't accepting [ or ] as a valid character for a nickname, however, those are valid characters for IRC.

indrora commented 8 years ago

Yeah, looks like I need to go in and really re-hash that.

The RFC [IRC-CLIENT] defines the following:

letter     =  %x41-5A / %x61-7A       ; A-Z / a-z
digit      =  %x30-39                 ; 0-9
special    =  %x5B-60 / %x7B-7D    ; "[", "]", "\", "`", "_", "^", "{",

"|", "}" nickname = ( letter / special ) *8( letter / digit / special / "-" )

I'll have to implement the bnf as a regex. Woo.

On Fri, Jan 1, 2016 at 4:12 AM, dextersgenius notifications@github.com wrote:

In the server settings, Atomic isn't accepting [ or ] as a valid character for a nickname, however, those are valid characters for IRC

— Reply to this email directly or view it on GitHub https://github.com/indrora/Atomic/issues/117.