I have this unban script that only will tell me who is banned in the room asked like !unban #help list, will list all bans in that room. Is there a way to grab the bans from all the open channels the bot has open like
<me>!ban list
<bot>Names banned in $chan
<bot>...Nothing in this room
<bot>Names banned in $chan
<bot> *!*@comcast.net
<bot>Names banned in $chan
and so on. this is what i got so far
on +Op:text:!unban *:?:{
if ($3 == list) {
if ($ibl($2,0) != 0) {
msg $nick Ban list for $2:
var %i = 1
while (%i <= $ibl($2,0)) {
msg $nick %i $+ : $ibl($2,%i) set by $ibl($2,%i).by on $ibl($2,%i).date
inc %i
}
}
else { msg $nick $2 has no bans! }
}
else if ( ! isin $3 && @ isin $3) {
if ($3 isban $2) {
mode $2 -b $3
msg $nick Ban $3 removed from $2
}
else {
msg $nick $3 was not found on $2 ban list.
}
}
else { msg $nick $3 is not a valid banmask. }
}