So, I was getting into making a bunch of popups for my script, and decided I wanted one to unban a user. The problem was, getting the right mask that I banned, and all of that. So I made this.
All it does is save a little bit of time, by allowing you to right click, and it removes your latest ban on said user.
alias cBans {
var %% 0
while (%% <= $ibl(#,0)) {
if (($ibl(#,%%).by == $address($me,5)) && ($ibl(#,%%) iswm $address($1,5))) {
mode $active -b $ibl($active,%%)
}
inc %%
}
}
menu nicklist {
Unban:/cBans $1
}