Subject: | irc_whois hash key 'identified' is no longer valid while using freenode network |
dist: POE-Component-IRC-6.45
perl version: v5.10.0
OS: Linux 2.6.26-2-686
irc_whois hash key 'identified' is no longer valid on Freenode. Freenode no longer returns
this information in a 320 message, but rather 330. Using key 'account' returns the
registered nick if the account is registered.
POE::Session->create(
inline_states => {
_start => \&bot_start,
irc_001 => \&on_connect,
irc_public => \&on_public,
irc_msg => \&on_private,
irc_disconnected => \&on_disconnect,
irc_kick => \&on_kick,
irc_join => \&on_join,
irc_ctcp_version => \&on_ctcp_version,
irc_whois => \&on_whois,
},
);
sub on_whois {
my ($kernel, $heap, $whoisout) = @_[KERNEL, HEAP, ARG0];
my $identified = $whoisout->{'identified'}; #returns no data
}