alias msg2 { var %x = 1 while (%x <= $chan(0)) { .echo $read(filter.txt,s,$chan(%x)) | if ($readn == 0) { /scon -at1 msg $chan(%x) $$1- } inc %x } } I occasionally get errors sometimes if: the channels are on 1 server, it'll try to send it to the same channels on another server that im on and this comes up: #Broken No such nick/channel - #SouthPark No such nick/channel - #GunBound No such nick/channel - #dbzbattles No such nick/channel - #pig No such nick/channel - #mp3 No such nick/channel - #Ghost No such nick/channel - #fire No such nick/channel - .... So how can I fix this so it sends to ALL the chans im on, on every server?
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
alias msgall [color:red]scid -at1[/color] amsg $$1-
to send a message to a specific channel (ex: #lame) on all servers:
Code:
alias msgchan scid -at1 msgchan1 $$1-
alias -l msgchan1 [color:green]if ($1 ischan)[/color] msg $1 $$2-
to send a message to a list of channels on all servers:
Code:
set %chans #lame,#crazy,#stupid
alias msgchans scid -at1 msgchans1 $$1-
alias -l msgchans1 {
var %n = $numtok(%chans,44)
while (%n > 0)
if ($gettok(%chans,44,%n) ischan) msg $ifmatch $$2-
dec %n
}
}