summaryrefslogtreecommitdiffstats
path: root/modules/util.pl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/util.pl')
-rw-r--r--modules/util.pl26
1 files changed, 0 insertions, 26 deletions
diff --git a/modules/util.pl b/modules/util.pl
index 0a5c6c4..109882b 100644
--- a/modules/util.pl
+++ b/modules/util.pl
@@ -4,7 +4,6 @@ use warnings;
use strict;
my %sf;
-my %oq;
%::RISKS =
(
@@ -114,31 +113,6 @@ sub hostip {
return gethostbyname($_[0]);
}
-# Send something that requires ops
-sub o_send {
- my ( $conn, $send ) = @_;
- my @splt = split(/ /, $send);
- my $chan = lc $splt[1];
- $oq{$chan} = [] unless defined($oq{$chan});
- if ( cs($chan)->{op} ne 'no' ) {
- print Dumper(lc $::settings->{nick}, $::sc{$chan}{users}{lc $::settings->{nick}});
- print Dumper($send, $chan);
- if ( $::sc{$chan}{users}{lc $::settings->{nick}}{op} eq 1) {
- $conn->sl($send);
- }
- else {
- push( @{$oq{$chan}},$send );
- $conn->privmsg( 'chanserv', "op $chan" );
- }
- }
-}
-
-sub doQueue {
- my ( $conn, $chan ) = @_;
- return unless defined $oq{$chan};
- $conn->sl(shift(@{$oq{$chan}})) while (@{$oq{$chan}});
-}
-
sub flood_add {
my ( $chan, $id, $host, $to ) = @_;
push( @{$sf{$id}{$chan}{$host}}, time );