mIRC Home    About    Download    Register    News    Help

Print Thread
#236948 03/04/12 01:32 PM
Joined: Feb 2012
Posts: 9
J
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Feb 2012
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?

JonazThern #236949 03/04/12 01:40 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
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


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #236950 03/04/12 01:54 PM
Joined: Feb 2012
Posts: 9
J
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Feb 2012
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


Link Copied to Clipboard