Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Kurt M. Weber
November 9, 2007, 11:04 pm
rate this thread
Perl program sees a user has changed his nick. This is the relevant
my ($who,$newnick,$where) = @_[ARG0,ARG1,ARG2];
my ($nick, $host) = split /!/, $who;
my $channel = $where->;
my $logline = "--- " . $nick . " is now known as " . $target;
&writeline($ircserver, $channel, $logline);
Now, the documentation indicates that ARG2 will contain an arrayref of all
the channels on which the client saw the user change his nickname. Now,
for simplicity's sake, I'm just worried about the first one, which should
be in $where->.
However, it's not there.
Using Data::Dumper, I discover that ARG2 (and therefore $where) is an
arrayref, but it's empty.
Any clue what I'm missing? And yes, I am using
POE::Component::IRC::State->spawn rather than just
Kurt M. Weber
- » Announcing Net::Digg - Perl interface to the Digg API
- — Previous thread in » PERL Modules Announcements