Try using the following lines of code in your script:
Code
on *:JOIN:#test:{
  
  ;--- 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 10 seconds.

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.


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples