X-Git-Url: https://git.donarmstrong.com/?p=irc.git;a=blobdiff_plain;f=.irssi%2Fscripts%2Fauto_bleh.pl;h=92ae4948a194100c3cecd5f79974b708d34303f0;hp=1bf9e6245a281ad62fa30c008d399d8c7bc36a48;hb=2838915b261bfcc5b18b24d7c59566e1afdfc742;hpb=7fc6ad2ce9fa3c4d6829a16df9554b115b97b2e1 diff --git a/.irssi/scripts/auto_bleh.pl b/.irssi/scripts/auto_bleh.pl index 1bf9e62..92ae494 100644 --- a/.irssi/scripts/auto_bleh.pl +++ b/.irssi/scripts/auto_bleh.pl @@ -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} +q *!*@".$action->{hostname}) if $action->{hostname} ne ''; #quiet hostname } }