Skip to content

Commit

Permalink
Passthrough 'password','ssl' options to Bot::BasicBot
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongbin Yu committed Feb 13, 2014
1 parent 652cf6f commit a2cdd12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ilbot2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,15 @@ package main;
my $nick = shift @ARGV || $conf->{nick} || "ilbot6";
my $server = $conf->{server} // "irc.freenode.net";
my $port = $conf->{port} // 6667;
my $password = $conf->{password} // undef;
my $ssl = $conf->{ssl} // 0;
my $channels = [ split m/\s+/, $conf->{channel}];

my $bot = Ilbot::Logger->new(
server => $server,
port => $port,
password => $password,
ssl => $ssl,
channels => $channels,
nick => $nick,
alt_nicks => ["irclogbot", "logbot"],
Expand Down

0 comments on commit a2cdd12

Please sign in to comment.