summaryrefslogtreecommitdiffstats
path: root/modules/actions.pl
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2012-01-26 08:26:14 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2012-01-26 08:26:14 +0000
commitd07473ba85ec8ab030162e68244575f2c87e0389 (patch)
tree8c142752204c09a79310f5ce0a526e879c0690f6 /modules/actions.pl
parentba0006ae95cf173b49aff9c92f27ebbc61b62c5b (diff)
Delete everything having to do with chanops priviledges, no one has ever used it
Diffstat (limited to 'modules/actions.pl')
-rw-r--r--modules/actions.pl57
1 files changed, 0 insertions, 57 deletions
diff --git a/modules/actions.pl b/modules/actions.pl
deleted file mode 100644
index 08bf1be..0000000
--- a/modules/actions.pl
+++ /dev/null
@@ -1,57 +0,0 @@
-package ASM::Actions;
-use strict;
-use warnings;
-
-sub new
-{
- my $module = shift;
- my $self = {};
- my $tbl = {
- "ban" => \&ban,
- "kban" => \&kban,
- "kick" => \&kick,
- "none" => \&none,
- "quiet" => \&quiet,
- };
- $self->{ftbl} = $tbl;
- bless($self);
- return $self;
-}
-
-sub do
-{
- my $self = shift;
- my $item = shift;
- return $self->{ftbl}->{$item}->(@_);
-}
-
-sub ban {
- my ($conn, $event, $chan) = @_;
- $::oq->o_send( $conn, "mode $chan +b *!*\@$event->{host}" );
- return "mode $chan -b *!*\@$event->{host}";
-}
-
-sub kban {
- my ($conn, $event, $chan) = @_;
- $::oq->o_send($conn, "mode $chan +b *!*\@$event->{host}");
- $::oq->o_send($conn, "kick $chan $event->{nick} :Spamming");
- return "mode $chan -b *!*\@$event->{host}";
-}
-
-sub kick {
- my ($conn, $event, $chan) = @_;
- $::oq->o_send($conn, "kick $chan $event->{nick} :Spamming");
- return "";
-}
-
-sub none {
- return "";
-}
-
-sub quiet {
- my ($conn, $event, $chan) = @_;
- $::oq->o_send( $conn, "mode $chan +b %*!*\@$event->{host}" );
- return "mode $chan -b %*!*\@$event->{host}";
-}
-
-1;