to do this you would use a simple while loop through $ibl(channelname,N)
$ibl is internal ban list
$iel is internal exception list
$iil is internal invite list
here is a quick example using a master level
on Master:TEXT:!bl:#: {
msg # Checking Ban List
var %a 1
while ($ibl(#,%a)) {
msg # $v1
inc %a
}
msg # $iif(!$ibl(#,1),No entries,End List)
}
you could include while loops for the others all in one or separately.. as for clearing the bans you would do the same thing only using mode # -b instead of msg #
This is only a very basic example of how to do it.
If for whatever reason you don't want to use the internal list you could use the raw return. when you do /mode <channel> +b with no entry it will return the list of bans through the raw 367
you could do the same for exception and invite if you wish using their perspective raw return info
Edited Sep 2, 2010 5:43 AM by err0r