mIRC Homepage
Posted By: KBN Ban script and timers - 26/05/11 01:00 AM
I want a script that when you do "!ban 1" it will ban/kick the person who said it for 1 hour and then after that hour is up it will remove the ban, get what im saying?

thanks!
Posted By: DJ_Sol Re: Ban script and timers - 26/05/11 03:41 AM
Servers Im on don't really use the ban command, they use /access, but I believe this is how you ban & kick someone for an hour on a typical IRC server.

Code:
on @*:text:!ban 1:#:ban -ku3600 $address
Posted By: Tomao Re: Ban script and timers - 26/05/11 07:25 AM
DJ_Soul, you missed the $chan after the switches.

I'm not sure if that will kick the $address, so I think it's best to use
Code:
ban -ku3600 $chan $nick 2
Posted By: Riamus2 Re: Ban script and timers - 26/05/11 12:19 PM
Yes, that would have used $address. He just needed the $chan parameter.
Posted By: Tomao Re: Ban script and timers - 26/05/11 05:41 PM
Riamus2, I'm still having a doubt about kicking $address instead of $nick

Is it even possible?
Posted By: Riamus2 Re: Ban script and timers - 26/05/11 06:09 PM
I'm sorry, you're right. I didn't notice the -k there. With kick, you need $nick. smile
Posted By: DJ_Sol Re: Ban script and timers - 27/05/11 03:09 AM
Thanks guys.

Code:
on @*:text:!ban 1:#:ban -ku3600 # $nick
Posted By: Tomao Re: Ban script and timers - 27/05/11 06:23 PM
Without specifying the ban type, it's a type six ban by default.
Posted By: KBN Re: Ban script and timers - 06/09/11 08:32 PM
How would you change

on @*:text:!ban 1:#:ban -ku3600 # $nick

so when the user puts like a space or does the ctrl + O trick in front of it or anything and if anything after the command or does like !b a n

it will still trigger the script?
Posted By: Tomao Re: Ban script and timers - 07/09/11 05:42 PM
Originally Posted By: KBN
so when the user puts like a space or does the ctrl + O trick in front of it or anything and if anything after the command or does like !b a n

it will still trigger the script?
I don't think so. Why don't you have someone try it and find out?
© mIRC Discussion Forums