Quote:
on 1*:TEXT:#*:#: { if ($nick isreg $chan) { /ban #total90 $nick 1 | /kick #total90 $nick Advertising, bye! } }


There's no point specifying '1' if you're going to specify '*' as the access level. Also note, you do not need to include the / command prefix in a script. And finally, you can use the -k switch with the /ban command to save making separate /ban and /kick commands.

To unban an address after a set time, use the -u switch with the /ban command. For example, /ban -ku300 # $nick 3 Advertising would kick and ban a *!*user@*.domain for 'Advertising', and unban them automatically after 300 seconds (5 minutes). The time must be specified in seconds.

Also see:
/help on text
/help /ban


Regards,