mIRC Home    About    Download    Register    News    Help

Print Thread
ban/kick script problems #155187 04/08/06 05:14 AM
Joined: Jul 2006
Posts: 3
C
CodedChaos Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jul 2006
Posts: 3
I'm trying to make a script that will kick and ban a user on my channel for 10min if they say a message containing CodedChaos Xdcc

So pretty much.

Someone says: CodedChaos xdcc (or CodedChaos xdcc get, info, send, anything)

They are kicked and banned for 10min.

I've tried to make a script myself, and I can get the kicking and banning, I just can't get the time limit.

Any help would be great, thanks ^_^

Re: ban/kick script problems #155188 04/08/06 05:23 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
type /help /ban for more info
also /help $mask

/ban [-kruN] [#channel] <nickname|address> [type]
Bans someone from the current channel using their address. To do this, it first does a /userhost on the user, which gives it the user's address, and then it does a /mode # +b <user address>.

If you specify the -k switch, mIRC performs a ban/kick combination on the nickname.

If you specify the -uN switch, mIRC pauses N seconds before removing the ban.

to ban and kick with an auto unban

/ban -ku300 $nick (reason is optional)

the -k again means kick them too
the u means unban them in N seconds

/ban -ku300 $nick 3 You were warned.
you would see the ban
*!username@*.host.com
then the nick would be kicked with the reason "you were warned"
5 minutes later (300 seconds) the ban would be lifted

Re: ban/kick script problems #155189 04/08/06 05:24 AM
Joined: May 2006
Posts: 93
Taggnostr Offline
Babel fish
Offline
Babel fish
Joined: May 2006
Posts: 93
Quote:
/ban [-kruN] [#channel] <nickname|address> [type]
Bans someone from the current channel using their address. To do this, it first does a /userhost on the user, which gives it the user's address, and then it does a /mode # +b <user address>.

If you specify the -k switch, mIRC performs a ban/kick combination on the nickname.

If you specify the -uN switch, mIRC pauses N seconds before removing the ban.


you should use this two flags, /ban -ku600 [#channel] <nickname|address>

Re: ban/kick script problems #155190 04/08/06 06:12 AM
Joined: Jul 2006
Posts: 3
C
CodedChaos Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jul 2006
Posts: 3
Okay, thanks, looks like I was just entering something wrong..

Re: ban/kick script problems #155191 04/08/06 06:17 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Quote:
I tried that, but it doesn't work in a script for some reason...

post your script here so we can see what it is that is wrong