]> git.donarmstrong.com Git - irc.git/blobdiff - .irssi/scripts/auto_bleh.pl
use +q instead of +b %
[irc.git] / .irssi / scripts / auto_bleh.pl
index 1bf9e6245a281ad62fa30c008d399d8c7bc36a48..92ae4948a194100c3cecd5f79974b708d34303f0 100644 (file)
@@ -140,8 +140,9 @@ sub do_auto_bleh {
      # turn them into ban and kick, respectively.
      if ($server->{address} !~ $defaults{SMELLSLIKEFN}) {
          my %fn_mapping = (remove  => 'kick',
-                           quiet   => 'ban',
-                           unquiet => 'unban',
+                           # OFTC now supports +q/-q.
+                           #quiet   => 'ban',
+                           #unquiet => 'unban',
                            timeout => 'btimeout',
                           );
          for my $key (keys %fn_mapping) {
@@ -231,7 +232,7 @@ sub take_action {
          Irssi::print("Quieting $action->{nick} on $action->{channel} with hostname $action->{hostname}") if $DEBUG;
          # Find hostname
          if ($action->{hostname}) {
-              $server->send_raw("MODE $action->{channel} +b %*!*@".$action->{hostname}) if $action->{hostname} ne ''; #quiet hostname
+              $server->send_raw("MODE $action->{channel} +*!*@".$action->{hostname}) if $action->{hostname} ne ''; #quiet hostname
          }
 
      }