mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
pbot: slightly improved readability/flow of PBot.pm
This commit is contained in:
parent
aaa261b66e
commit
8983a53732
@ -71,18 +71,18 @@ sub initialize {
|
||||
$self->{data_dir} = delete $conf{data_dir} || "$ENV{HOME}/pbot/data";
|
||||
$self->{module_dir} = delete $conf{module_dir} || "$ENV{HOME}/pbot/modules";
|
||||
|
||||
my $channels_file = delete $conf{channels_file};
|
||||
my $admins_file = delete $conf{admins_file};
|
||||
|
||||
$self->{ircserver} = delete $conf{ircserver} || "irc.freenode.net";
|
||||
$self->{botnick} = delete $conf{botnick} || "pbot3";
|
||||
$self->{username} = delete $conf{username} || "pbot3";
|
||||
$self->{ircname} = delete $conf{ircname} || "http://code.google.com/p/pbot2-pl/";
|
||||
$self->{identify_password} = delete $conf{identify_password} || "";
|
||||
|
||||
$self->{max_msg_len} = delete $conf{max_msg_len} || 430;
|
||||
$self->{MAX_FLOOD_MESSAGES} = delete $conf{MAX_FLOOD_MESSAGES} || 4;
|
||||
$self->{MAX_NICK_MESSAGES} = delete $conf{MAX_NICK_MESSAGES} || 12;
|
||||
|
||||
my $channels_file = delete $conf{channels_file};
|
||||
my $admins_file = delete $conf{admins_file};
|
||||
my $ignorelist_file = delete $conf{ignorelist_file};
|
||||
|
||||
my $factoids_file = delete $conf{factoids_file};
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 266,
|
||||
BUILD_REVISION => 267,
|
||||
BUILD_DATE => "2011-01-26",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user