toxirc
toxirc copied to clipboard
IRC - What if nickname is already in use
Since the bot doesn't register itself on IRC someone "could" take the same name and denial of service the bot? Would it be possible to have the bot increment the nickname with a number if the first is taken?
I tried testing it myself and the bot never joins the default channel if its nickname is already in use but as far as it's concerned on tox it still thinks that it's connected to IRC and says "I'm already in the room" even though it's not.
It doesn't recognize the error from IRC that the nickname is already in use.
"The nickname "ToxIRC" is already in use. Please select a new nickname" <--that's the message in Kiwi IRC.
Registered nicknames are now supported. There still is the issue of notifying the user that the nickname is already taken.