mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-08 19:12:33 +01:00
Added username/realname to config
This commit is contained in:
parent
b261265726
commit
87ce882450
@ -64,6 +64,8 @@ sub initialize {
|
|||||||
my $admins_file = delete $conf{admins_file};
|
my $admins_file = delete $conf{admins_file};
|
||||||
|
|
||||||
my $botnick = delete $conf{botnick};
|
my $botnick = delete $conf{botnick};
|
||||||
|
my $username = delete $conf{username};
|
||||||
|
my $ircname = delete $conf{ircname};
|
||||||
my $identify_password = delete $conf{identify_password};
|
my $identify_password = delete $conf{identify_password};
|
||||||
|
|
||||||
my $ircserver = delete $conf{ircserver};
|
my $ircserver = delete $conf{ircserver};
|
||||||
@ -91,6 +93,8 @@ sub initialize {
|
|||||||
$MAX_NICK_MESSAGES = 8 unless defined $MAX_NICK_MESSAGES;
|
$MAX_NICK_MESSAGES = 8 unless defined $MAX_NICK_MESSAGES;
|
||||||
|
|
||||||
$self->{botnick} = $botnick;
|
$self->{botnick} = $botnick;
|
||||||
|
$self->{username} = $username;
|
||||||
|
$self->{ircname} = $ircname;
|
||||||
$self->{identify_password} = $identify_password;
|
$self->{identify_password} = $identify_password;
|
||||||
|
|
||||||
$self->{max_msg_len} = $max_msg_len;
|
$self->{max_msg_len} = $max_msg_len;
|
||||||
|
2
pbot.pl
2
pbot.pl
@ -37,6 +37,8 @@ my %config = ( log_file => "$home/pbot/log",
|
|||||||
|
|
||||||
ircserver => 'irc.freenode.net',
|
ircserver => 'irc.freenode.net',
|
||||||
botnick => 'pbot3',
|
botnick => 'pbot3',
|
||||||
|
username => 'pbot3',
|
||||||
|
ircname => 'http://www.iso-9899.info/wiki/Candide',
|
||||||
identify_password => '*',
|
identify_password => '*',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user