Hello Epic,
Please go through the code which i have already been using since long.
on *:join:#: { set %chan_exceptions if ($istok(%chan_exceptions,$chan,32) == $true) { return } set -u10 %lastJoin. [ $+ [ $chan ] ] $chan $nick } alias f2 { var %check_value $eval($+(%,lastJoin.,$active),2) if (%check_value == $null) { return } var %nick $gettok(%check_value,2,32) var %chan $gettok(%check_value,1,32) var %KICKMSG 1[4Ab/Fld1] Purged! mode %chan +bb $address(%nick,2) %nick kick %check_value %KICKMSG } ;Double Click Ban on $^*:hotlink:/(@[^\s)]+\56[^\s)\56]+)/S:#:{ if ($me !isop $chan) && ($me !ishop $chan) { halt } } on $*:hotlink:/(@[^\s)]+\56[^\s)\56]+)/S:#:{ !mode $chan $iif(*!* $+ $regml(1) isban $chan,-b,+b) *!* $+ $regml(1) } on $^*:hotlink:/([a-zA-Z_\Q\[]{}^`|\E][a-zA-Z0-9_\Q\[]{}^`|\E-]*)/S:#:{ if ($regml(1) !ison $chan) { halt } if ($me !isop $chan) && ($me !ishop $chan) { halt } } on $*:hotlink:/([a-zA-Z_\Q\[]{}^`|\E][a-zA-Z0-9_\Q\[]{}^`|\E-]*)/S:#:{ !ban -k $chan $regml(1) 2 1[4Flood Bot1] You are not welcomed! }
let me tell you what exactly this code does. i need to press f2 to kick an abuser/flooder. it sets 2 different bans in one f2 button press. 1st. nickname ban 2nd full address ban (ban 2). this function is used for super fast kick/ban of an abuser.
What i am looking for:
1. can we use this code and write all the banned nicks and ips into one blacklisted file (supposedly, the badnicks.txt file from earlier code).
2. this code is not automatic so it may doesnt have to read the badnicks.txt file just to ban abusers.
3. a central repository file (badnicks.txt) could be very helpful in adding all the abusive nicks and ips at one place and use it :d
your suggestions are always welcome
Thanks & Regards,
Sleepyhead