summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_testing/config.yml1
-rw-r--r--scripts/colorkick.pl15
2 files changed, 8 insertions, 8 deletions
diff --git a/_testing/config.yml b/_testing/config.yml
index d678d01..8764417 100644
--- a/_testing/config.yml
+++ b/_testing/config.yml
@@ -38,7 +38,6 @@ whitelist:
- babelirc
- cap_sasl_fail
- cap_sasl
- - colorkick
- connectcmd
- dau
- dnsspam
diff --git a/scripts/colorkick.pl b/scripts/colorkick.pl
index 24b29fd..c28e420 100644
--- a/scripts/colorkick.pl
+++ b/scripts/colorkick.pl
@@ -13,7 +13,8 @@ use strict;
use Irssi;
use Irssi::Irc;
-use vars %IRSSI;
+use vars qw/%IRSSI $VERSION/;
+$VERSION='0.1';
%IRSSI =
(
authors => "Gabor Nyeki",
@@ -22,7 +23,7 @@ use vars %IRSSI;
description => "kicking users for using colors or blinks",
license => "public domain",
written => "Thu Dec 26 00:22:54 CET 2002",
- changed => "Fri Jan 2 03:43:10 CET 2004"
+ changed => "2017-03-07"
);
sub catch_junk
@@ -31,15 +32,15 @@ sub catch_junk
my ($target, $text) = split(/ :/, $data, 2);
my $valid_channel = 0;
- if ($target[0] != '#' && $target[0] != '!' && $target[0] != '&')
- {
- return;
- }
+ #if ($target[0] != '#' && $target[0] != '!' && $target[0] != '&')
+ #{
+ # return;
+ #}
for my $channel (split(/ /,
Irssi::settings_get_str('colorkick_channels')))
{
- if ($target == $channel)
+ if ($target eq $channel)
{
$valid_channel = 1;
last;