my $select = IO::Select->new;
sub Wingates {
- my $file = "$::blootbot_base_dir/$::param{'ircUser'}.wingate";
+ my $file = "$::infobot_base_dir/$::param{'ircUser'}.wingate";
my @hosts;
open(IN, $file);
if ($wingate) {
&::status("Wingate: RUNNING ON $host BY $::who.");
- if (&::IsParam("wingateBan")) {
- &::ban("*!*\@$host", "");
+ if (&::IsChanConf('wingateBan') > 0) {
+ &::ban("*!*\@$host", '');
}
- if (&::IsParam("wingateKick")) {
- &::kick($::who, "", $::param{'wingateKick'});
+ my $reason = &::getChanConf('wingateKick');
+ if ($reason) {
+ &::kick($::who, '', $reason);
}
push(@::wingateBad, "$host\*");