This is my timed ban dialog this allows a moderator or an admin to set a ban for a user for 30 minutes or 1 hour or infinite this snippet it sets the ban for the user then unbans them in the amount of time specified by the checks it can be done by Nick/Ip/Host/ident just enter it into the edit and then click the time u wish the ban to stay for and click addban =) any questions / comments would be helpful
NOTE: This is from my upcoming r00t` iRC
NOTE: it is root asin root administrator on a linux shell not root asin a skiddie rooting peoples computer =P i feel the need to explain that in each post from it to avoid the comments calling me an skiddie =P
Alias Tb { Dialog -m Tb Tb }
Dialog Tb {
Title "r00t` iRC Time Ban"
Option dbu
size -1 -1 100 82
Edit "Nick/ip/host",1, 2 2 96 11
Edit "Room",2, 2 14 96 11
Check "30 minutes",3, 2 27 50 11
Check "1 Hour",4, 2 40 50 11
Check "Infinate",5, 2 53 50 11
Button "Add ban",6, 2 68 48 12
Button "Done",7, 52 68 48 12
}
On *:Dialog:Tb:*:*:{ If ($devent == Sclick) {
If ($did = 3) { Set %Timer 1800 | did -u $dname 4 | Did -u $dname 5 }
If ($did = 4) { Set %Timer 3600 | did -u $dname 3 | Did -u $dname 5 }
If ($did = 5) { Unset %Timer | Did -u $dname 3 | Did -u $dname 4 }
If ($did = 6) {
Set %ip.x $did(1)
Set %room $did(2)
Mode $did(2) +b $did(1)
Timer 1 %Timer mode %room -b %ip.x
}
If ($did = 7) { Dialog -x $dname $dname }
}
}
On *:RawMode:#:{ If (%ip.x isin $1-) && (-b Isin $1-) { Unset %Timer }
}
Menu Channel {
r00t` iRC Time Ban Script:Tb
}
I will consider that @ Burrito but i just did a quick 5 minute throw together on this for my script ( main owner of universitychat(chat i co own) decided we have to ban users for 30 mins when we cus and i was like fu** that im gonna be lazy and make a script lol) but then i decided it maybe useful to others so i added it on here