mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-27 06:19:25 +01:00
Whoops, NickList should be registered after IRCHandlers since IRCHandlers depends on NickList for AntiFlood QUIT handling
This commit is contained in:
parent
4091127213
commit
0cd4102d37
@ -105,20 +105,20 @@ sub initialize {
|
|||||||
$self->{registry}->add_trigger('irc', 'debug', sub { $self->irc_debug_trigger(@_) });
|
$self->{registry}->add_trigger('irc', 'debug', sub { $self->irc_debug_trigger(@_) });
|
||||||
|
|
||||||
$self->{event_dispatcher} = PBot::EventDispatcher->new(pbot => $self, %conf);
|
$self->{event_dispatcher} = PBot::EventDispatcher->new(pbot => $self, %conf);
|
||||||
|
$self->{irchandlers} = PBot::IRCHandlers->new(pbot => $self, %conf);
|
||||||
$self->{select_handler} = PBot::SelectHandler->new(pbot => $self, %conf);
|
$self->{select_handler} = PBot::SelectHandler->new(pbot => $self, %conf);
|
||||||
$self->{stdin_reader} = PBot::StdinReader->new(pbot => $self, %conf);
|
$self->{stdin_reader} = PBot::StdinReader->new(pbot => $self, %conf);
|
||||||
$self->{admins} = PBot::BotAdmins->new(pbot => $self, filename => delete $conf{admins_file}, %conf);
|
$self->{admins} = PBot::BotAdmins->new(pbot => $self, filename => delete $conf{admins_file}, %conf);
|
||||||
$self->{bantracker} = PBot::BanTracker->new(pbot => $self, %conf);
|
$self->{bantracker} = PBot::BanTracker->new(pbot => $self, %conf);
|
||||||
$self->{nicklist} = PBot::NickList->new(pbot => $self, %conf);
|
|
||||||
$self->{lagchecker} = PBot::LagChecker->new(pbot => $self, %conf);
|
$self->{lagchecker} = PBot::LagChecker->new(pbot => $self, %conf);
|
||||||
$self->{messagehistory} = PBot::MessageHistory->new(pbot => $self, filename => delete $conf{messagehistory_file}, %conf);
|
$self->{messagehistory} = PBot::MessageHistory->new(pbot => $self, filename => delete $conf{messagehistory_file}, %conf);
|
||||||
$self->{antiflood} = PBot::AntiFlood->new(pbot => $self, %conf);
|
$self->{antiflood} = PBot::AntiFlood->new(pbot => $self, %conf);
|
||||||
$self->{ignorelist} = PBot::IgnoreList->new(pbot => $self, filename => delete $conf{ignorelist_file}, %conf);
|
$self->{ignorelist} = PBot::IgnoreList->new(pbot => $self, filename => delete $conf{ignorelist_file}, %conf);
|
||||||
$self->{blacklist} = PBot::BlackList->new(pbot => $self, filename => delete $conf{blacklist_file}, %conf);
|
$self->{blacklist} = PBot::BlackList->new(pbot => $self, filename => delete $conf{blacklist_file}, %conf);
|
||||||
$self->{irc} = PBot::IRC->new();
|
$self->{irc} = PBot::IRC->new();
|
||||||
$self->{irchandlers} = PBot::IRCHandlers->new(pbot => $self, %conf);
|
|
||||||
$self->{channels} = PBot::Channels->new(pbot => $self, filename => delete $conf{channels_file}, %conf);
|
$self->{channels} = PBot::Channels->new(pbot => $self, filename => delete $conf{channels_file}, %conf);
|
||||||
$self->{chanops} = PBot::ChanOps->new(pbot => $self, %conf);
|
$self->{chanops} = PBot::ChanOps->new(pbot => $self, %conf);
|
||||||
|
$self->{nicklist} = PBot::NickList->new(pbot => $self, %conf);
|
||||||
|
|
||||||
$self->{interpreter} = PBot::Interpreter->new(pbot => $self, %conf);
|
$self->{interpreter} = PBot::Interpreter->new(pbot => $self, %conf);
|
||||||
$self->{interpreter}->register(sub { return $self->{commands}->interpreter(@_); });
|
$self->{interpreter}->register(sub { return $self->{commands}->interpreter(@_); });
|
||||||
|
Loading…
Reference in New Issue
Block a user