mIRC Home    About    Download    Register    News    Help

Topic Options
#236948 - 03/04/12 02:32 PM Kick script!
JonazThern Offline
Nutrimatic drinks dispenser

Registered: 02/02/12
Posts: 9
Hi, I have a small kick script that adds a kick number to it, looks like following:

Code:
on *:kick:#:if ( $nick == $me ) inc %kicks 1

alias kick { if ($me isop $1) && ($2 ison $1) { kick # $1 $2 $3- Kick: %kicks $+   } }


As of now, you have to /kick #channel $nick $reason for it to work, but I want just /kick $nick $reason. How do I modify it work like that?

Top
#236949 - 03/04/12 02:40 PM Re: Kick script! [Re: JonazThern]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3475
Loc: France
Code:
alias kick kick $1- Kick: %kicks $+ 


The kick command already handle the fact that you can miss the channel parameter if you use it for the active channel, just add your reason
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#236950 - 03/04/12 02:54 PM Re: Kick script! [Re: Wims]
JonazThern Offline
Nutrimatic drinks dispenser

Registered: 02/02/12
Posts: 9
Originally Posted By: Wims
Code:
alias kick kick $1- Kick: %kicks $+ 


The kick command already handle the fact that you can miss the channel parameter if you use it for the active channel, just add your reason



Code:
on *:kick:#:if ( $nick == $me ) inc %kicks 1

alias kick { if ($me isop #) { kick # $1 $2- # $+ %kicks $+   } }


That worked, removed the ison and tweaked a bit! smile

Top