From 8d666984dc54b10ffa802144a77b35d01b277e99 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 6 Sep 2015 22:38:59 -0700 Subject: [PATCH] Move AntiAway and AntiKickAutoRejoin to Pluggable --- PBot/PBot.pm | 4 ---- PBot/{ => Pluggable}/AntiAway.pm | 2 +- PBot/{ => Pluggable}/AntiKickAutoRejoin.pm | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) rename PBot/{ => Pluggable}/AntiAway.pm (98%) rename PBot/{ => Pluggable}/AntiKickAutoRejoin.pm (98%) diff --git a/PBot/PBot.pm b/PBot/PBot.pm index da33e52c..b592534b 100644 --- a/PBot/PBot.pm +++ b/PBot/PBot.pm @@ -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(@_); }); diff --git a/PBot/AntiAway.pm b/PBot/Pluggable/AntiAway.pm similarity index 98% rename from PBot/AntiAway.pm rename to PBot/Pluggable/AntiAway.pm index 791766a7..270fe9e0 100644 --- a/PBot/AntiAway.pm +++ b/PBot/Pluggable/AntiAway.pm @@ -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; diff --git a/PBot/AntiKickAutoRejoin.pm b/PBot/Pluggable/AntiKickAutoRejoin.pm similarity index 98% rename from PBot/AntiKickAutoRejoin.pm rename to PBot/Pluggable/AntiKickAutoRejoin.pm index f3c64d39..a6e9b8a8 100644 --- a/PBot/AntiKickAutoRejoin.pm +++ b/PBot/Pluggable/AntiKickAutoRejoin.pm @@ -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;