Try using the following lines of code in your script:
;--- code snippet ---
var %host = $ial($nick).host
var %host1 = $+(*!*@,$gettok(%host,1,46),.*)
mode $chan +b %host1
.timerUNBAN $+ %host 1 3600 mode $chan -b %host1
This snippet of code needs to be inserted into your script where the "on JOIN
" event is located. For the test, change the timer action value from 3600
To prevent the same timer from being recreated due to a new user join event, need to give the timer a unique name each time.
To do this, you can add the full user host to the timer name ".timerUNBAN $+ %host
". In this case, each new user will have their own timer created.Note
: Keep in mind that if the Bot freezes or disconnects from the network, then you risk leaving all users in a permanent ban, whose address will match part of the address in the ban list.