Mojo-IRC
view release on metacpan or search on metacpan
lib/Mojo/IRC.pm view on Meta::CPAN
has nick => sub { shift->_build_nick };
has parser => sub { Parse::IRC->new; };
has pass => '';
has real_host => '';
has server_settings => sub {
return {chantypes => '#', prefix => '(ov)@+'};
};
has tls => undef;
has user => sub { $ENV{USER} || getlogin || getpwuid($<) || 'anonymous' };
sub new {
my $self = shift->SUPER::new(@_);
$self->on(message => \&_legacy_dispatch_message);
return $self;
}
sub server {
my ($self, $server) = @_;
my $old = $self->{server} || '';
( run in 0.339 second using v1.01-cache-2.11-cpan-8d75d55dd25 )