irc
irc copied to clipboard
[AIO] Connection real_nickname must not be set before registration
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.
Depends on #189 to be useful at pre-registration.