on @*:text:!unban *:[color:red]#Channel2[/color]:{
if ($2 isban [color:red]#Channel1[/color]) {
msg # Removing ban for $2 on [color:blue]#Channel1[/color]
mode [color:red]#Channel1[/color] -b $2
}
else {
msg # $2 was not found on [color:blue]#Channel1's[/color] ban list.
}
}
The red text needs to be changed. The blue text can be changed if you want to, or you can remove it. It does not affect the script at all.
Useage: !unban <hostmask>
Example
John123 (john@vhost.com) gets banned from #Channel1 with mask *!john@vhost.com
John123 joins #Channel2 and types !unban *!john@vhost.com
Bot checks if *!john@vhost.com is on #Channel1's ban list and if so, unbans it. If it's not, then it says the mask was not found on the ban list.