irc icon indicating copy to clipboard operation
irc copied to clipboard

[AIO] Connection real_nickname must not be set before registration

Open hifi opened this issue 3 years ago • 1 comments

Some networks (IRCnet in particular) may reserve nicknames temporarily when you disconnect. The network will send 437 ERR_UNAVAILRESOURCE during connection registration which means our real real nickname is not yet actually set.

Having it an empty string or None would help detecting this issue during registration that our desired nickname is not available right now and the downstream implementation can decide what to do with this information, like use a temporary nickname and a timer to retry the real nickname later.

Without any subclassing, currently it is required to wait for 001 before believing real_nickname which will add unnecessary complexity.

hifi avatar Jun 10 '21 05:06 hifi

Depends on #189 to be useful at pre-registration.

hifi avatar Jun 10 '21 06:06 hifi