mIRC Home    About    Download    Register    News    Help

Print Thread
#173691 27/03/07 08:15 PM
Joined: Mar 2007
Posts: 10
L
Pikka bird
OP Offline
Pikka bird
L
Joined: Mar 2007
Posts: 10
Hi there, can anyone help me, i wanna kick ban quicker e.g

/kb <nick> <reason>

something like that.

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Make an alias /kb

Put this on your ALIAS section

Code:
kb ban -k # $$1 $iif($2,$2-,Banned!)


Or on your REMOTES section

Code:
alias kb ban -k # $$1 $iif($2,$2-,Banned!)


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Mar 2007
Posts: 10
L
Pikka bird
OP Offline
Pikka bird
L
Joined: Mar 2007
Posts: 10
oh wow it worked, thank you so much ^_^

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
You're welcome smile


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Mar 2007
Posts: 10
L
Pikka bird
OP Offline
Pikka bird
L
Joined: Mar 2007
Posts: 10
Ugh, sorry again, but how can i do it so it just it bans the hostmask?. not the nick.

and also, where do i put my kick counter in it.

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
We'll slightly edit the previous code. Using the one for the remotes section

Code:
alias kb { 
  inc %kick.counter
  ban -k # $$1 2 $iif($2,$2-,Banned!) (# $+ %kick.counter $+ )
}


* Notice the "2". That is the type of mask it will ban for the specified nick.

See /help $mask for the other types.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Mar 2007
Posts: 10
L
Pikka bird
OP Offline
Pikka bird
L
Joined: Mar 2007
Posts: 10
Also, can you just help me with the kick counter, so that it follows my normals kicks aswell as my kick bans aswell. thanks!

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Put this into a fresh remote file.
Code:
on *:kick:#:{
  inc %kick.counter
}


NOTE: If you have the inc %kick.counter in any other scripts, then the increase will be incorrect, as it will increase once for each inc %kick.counter command encountered. If you're going to use the above, I recommend going through your other scripts and removing that particular line.


Link Copied to Clipboard