mIRC Home    About    Download    Register    News    Help

Print Thread
#208254 17/01/09 01:18 PM
X
xyzzy
xyzzy
X
/toolbar -az1 Kick "Kicker" graph\k.ico "/kick # $1 Reason"
Kick No such nick/channel
cant we use aliases or ban/kick stuff on toolbar command or am i doing it wrong confused

#208260 17/01/09 02:40 PM
5
5618
5618
5
$1 is the name of the button

You want $snick(#,1)

Last edited by 5618; 17/01/09 02:48 PM.
#208279 17/01/09 05:35 PM
X
xyzzy
xyzzy
X
ty but it works only on 1 nick
how can i make every selected nicks confused

#208280 17/01/09 05:48 PM
Joined: Jul 2006
Posts: 4,062
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,062
You want $snicks, but you can't kick multiple nick in one command, you have to use an alias, try this :

/toolbar -az1 Kick "Kicker" graph\k.ico "kick_sel"

and in the remote add (or put it in the alias section) :

alias kick_sel tokenize 44 $snicks | kick # $* Reason


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #208281 17/01/09 05:57 PM
5
5618
5618
5
Originally Posted By: Wims
alias kick_sel tokenize 44 $snicks | kick # $* Reason

I believe he will need to use $snick(#) instead of $snicks ...

#208290 17/01/09 10:41 PM
X
xyzzy
xyzzy
X
alias working well ty
with $snick(#) error is
* /ban: no such user nick1,nick2

#208295 17/01/09 11:09 PM
T
Tomao
Tomao
T
Maybe like this:

Code:
alias kick_sel {
var %i $snick($active,0) | :next | if $snick($active,%i) != $me ban -k $active $snick($active,%i) <kick reason> | dec %i | if %i > 0 goto next
}


Link Copied to Clipboard