Good evening. I need to script a command that will kline channel ban list (all bans on some channel :tongue:). I don't know how to read bans into some variable or something, or maybe there's some other (better) way to do the job. Also, bans are in format *!*@<ip> and I need to kline in format *@<ip>.
Thank you, man... If anybody needs a code here it is (thanx to Collective):
Code:
set %i 0
:start
if (%i == $ibl(#,0)) goto end
inc %i
kline $gettok($ibl(#,%i),2,33) Klined
mode # -b $ibl(#,%i)
goto start
:end
echo -s Banning of ban list on channel # is over.