Multi-Server Filter... - 17/04/04 05:01 AM
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?
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?