diff --git a/PBot/PBot.pm b/PBot/PBot.pm index 99b8a7f4..13de72a7 100644 --- a/PBot/PBot.pm +++ b/PBot/PBot.pm @@ -64,6 +64,8 @@ sub initialize { my $admins_file = delete $conf{admins_file}; my $botnick = delete $conf{botnick}; + my $username = delete $conf{username}; + my $ircname = delete $conf{ircname}; my $identify_password = delete $conf{identify_password}; my $ircserver = delete $conf{ircserver}; @@ -91,6 +93,8 @@ sub initialize { $MAX_NICK_MESSAGES = 8 unless defined $MAX_NICK_MESSAGES; $self->{botnick} = $botnick; + $self->{username} = $username; + $self->{ircname} = $ircname; $self->{identify_password} = $identify_password; $self->{max_msg_len} = $max_msg_len; diff --git a/pbot.pl b/pbot.pl index 48f5049b..0b4a5b25 100755 --- a/pbot.pl +++ b/pbot.pl @@ -37,6 +37,8 @@ my %config = ( log_file => "$home/pbot/log", ircserver => 'irc.freenode.net', botnick => 'pbot3', + username => 'pbot3', + ircname => 'http://www.iso-9899.info/wiki/Candide', identify_password => '*', );