mIRC Home    About    Download    Register    News    Help

Print Thread
#232236 26/05/11 01:00 AM
Joined: Apr 2011
Posts: 11
K
KBN Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Apr 2011
Posts: 11
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!

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
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

Last edited by Tomao; 26/05/11 07:27 AM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes, that would have used $address. He just needed the $chan parameter.


Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Riamus2, I'm still having a doubt about kicking $address instead of $nick

Is it even possible?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I'm sorry, you're right. I didn't notice the -k there. With kick, you need $nick. smile


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Thanks guys.

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

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Without specifying the ban type, it's a type six ban by default.

Joined: Apr 2011
Posts: 11
K
KBN Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Apr 2011
Posts: 11
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?

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
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?


Link Copied to Clipboard