]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Wingate.pl
take a few more things literally
[infobot.git] / src / Modules / Wingate.pl
index 53aaf267f9a3ca4db835149b8b6de078325e133c..da9deed0667cb7e1ea94ab69a3dd0ffd01dc111f 100644 (file)
@@ -72,12 +72,13 @@ sub Wingate {
        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\*");