mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-27 06:19:25 +01:00
Move AntiAway and AntiKickAutoRejoin to Pluggable
This commit is contained in:
parent
539aeb3e9f
commit
8d666984dc
@ -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(@_); });
|
||||
|
@ -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;
|
@ -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;
|
Loading…
Reference in New Issue
Block a user