3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-22 18:52:40 +01:00

Added username/realname to config

This commit is contained in:
Pragmatic Software 2010-04-09 22:52:24 +00:00
parent b261265726
commit 87ce882450
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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 => '*',
);