mIRC Home    About    Download    Register    News    Help

Print Thread
#79587 17/04/04 05:01 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
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 -
#79588 17/04/04 11:18 AM
Joined: Jan 2004
Posts: 26
F
Ameglian cow
Offline
Ameglian cow
F
Joined: Jan 2004
Posts: 26
to send a message to all channels on all servers:
Code:
 
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 &gt; 0)
  if ($gettok(%chans,44,%n) ischan) msg $ifmatch $$2-
  dec %n
 }
}


hope that'll help a bit


Link Copied to Clipboard