From 0cd4102d376d6c0427162b4ea2153ee55242335b Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 22 Sep 2016 08:26:42 -0700 Subject: [PATCH] Whoops, NickList should be registered after IRCHandlers since IRCHandlers depends on NickList for AntiFlood QUIT handling --- PBot/PBot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/PBot.pm b/PBot/PBot.pm index 08493520..c8ca8dc0 100644 --- a/PBot/PBot.pm +++ b/PBot/PBot.pm @@ -105,20 +105,20 @@ sub initialize { $self->{registry}->add_trigger('irc', 'debug', sub { $self->irc_debug_trigger(@_) }); $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->{stdin_reader} = PBot::StdinReader->new(pbot => $self, %conf); $self->{admins} = PBot::BotAdmins->new(pbot => $self, filename => delete $conf{admins_file}, %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->{messagehistory} = PBot::MessageHistory->new(pbot => $self, filename => delete $conf{messagehistory_file}, %conf); $self->{antiflood} = PBot::AntiFlood->new(pbot => $self, %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->{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->{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}->register(sub { return $self->{commands}->interpreter(@_); });