I think it'd be better doing it this way:

Code:
on @*:BAN:#:write bans.txt - $bnick $+ ( $+ $banmask $+ )
on *:TEXT:!banlist:#:var %x = $lines(bans.txt) | while (%x) { if ($read(bans.txt,%x)) { timer 1 $calc(%x * 2) msg # $v1 } | dec %x }


When a person is banned in your channel, his or her banned nickname or address will be written to a text file called bans.txt, which will be stored in your mirc's directory automatically. Now, when someone commands your bot with !banlist, the script will loop though the content of the text file for all the banned nicknames, if any, and addresses to display in the channel.

Last edited by Tomao; 13/01/09 07:10 PM.