This little alias allows you to send a message , echo , /hop and many other commands that you want to use in every channel you are in on all networks you are connected to.
Usage $looper(Command,text to be sent)
A few examples below.
Example: //noop $looper(describe,this is a multi network /me)
Example: //noop $looper(hop,I am hopping!)
alias looper {
if ($isid) {
var %t 1 | while (%t <= $scid(0)) {
scon %t | var %chans $chan(0)
while (%chans) { $1 $chan(%chans) $$2 | dec %chans }
inc %t
}
}
}
Good one, Scakk. About this: $iif($2,$2) , you should just use $$2...'cause if there's no $2, you'll still get an insufficient parameter error when other commands are used.
Being a nosy bubble burster, :P can't we do it using /scon -at1?
alias looper {
if $isid {
var %chans 1
while $chan(%chans) {
scon -at1 $1 $v1 $$2
inc %chans
}
}
}