3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-27 13:12:42 +01:00

Move AntiAway and AntiKickAutoRejoin to Pluggable

This commit is contained in:
Pragmatic Software 2015-09-06 22:38:59 -07:00
parent 539aeb3e9f
commit 8d666984dc
3 changed files with 2 additions and 6 deletions

View File

@ -47,8 +47,6 @@ use PBot::IgnoreList;
use PBot::BlackList;
use PBot::Quotegrabs;
use PBot::Timer;
use PBot::AntiAway;
use PBot::AntiKickAutoRejoin;
use PBot::Refresher;
use PBot::Pluggable;
@ -122,8 +120,6 @@ sub initialize {
$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->{antiaway} = PBot::AntiAway->new(pbot => $self, %conf);
$self->{antikickautorejoin} = PBot::AntiKickAutoRejoin->new(pbot => $self, %conf);
$self->{interpreter} = PBot::Interpreter->new(pbot => $self, %conf);
$self->{interpreter}->register(sub { return $self->{commands}->interpreter(@_); });

View File

@ -3,7 +3,7 @@
#
# Purpose: Kicks people that visibly auto-away with ACTIONs or nick-changes
package PBot::AntiAway;
package PBot::Pluggable::AntiAway;
use warnings;
use strict;

View File

@ -3,7 +3,7 @@
#
# Purpose: Temporarily bans people who immediately auto-rejoin after a kick.
package PBot::AntiKickAutoRejoin;
package PBot::Pluggable::AntiKickAutoRejoin;
use warnings;
use strict;