Skip Menu |

This queue is for tickets about the Bot-BasicBot CPAN distribution.

Report information
The Basics
Id: 100816
Status: open
Priority: 0/
Queue: Bot-BasicBot

People
Owner: Nobody in particular
Requestors: strikingwolf2012 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug: Not logging in when default username is already in use
Date: Tue, 09 Dec 2014 18:44:32 -0600
To: <bug-Bot-BasicBot [...] rt.cpan.org>
From: Wes Jackson <strikingwolf2012 [...] gmail.com>
When the default username on my bot was already in use it should move on to the alternates; however, instead it just throws a connection error
On 2014-12-10 00:44:51, strikingwolf2012@gmail.com wrote: Show quoted text
> When the default username on my bot was already in use it should move on to > the alternates; however, instead it just throws a connection error
The documentation for alt_nicks says this is expected: == quote doco == Alternate nicks that this bot will be known by. These are not nicks that the bot will try if it's main nick is taken, but rather other nicks that the bot will recognise if it is addressed in a public channel as the nick. This is useful for bots that are replacements for other bots...e.g, your bot can answer to the name "infobot: " even though it isn't really. == end quote == That surprises me, though; I also would have expected it to respond to a "nick in use" by trying one of those alternate nicks. I'll see how hard that would be to add. At a glance, POE::Component::IRC doesn't seem to support it, so I suspect the right solution would be to submit a PR/patch to Poco::IRC adding "try alternate nicks" functionality, and if that's merged and a new release put out, then just update Bot::BasicBot to use it.