mIRC Homepage
Posted By: very_confused msg multiple channels - 03/07/03 04:32 PM
how can i send the same msg to multiple channels
Posted By: Raccoon Re: msg multiple channels - 03/07/03 04:43 PM
The /amsg command sometimes works, depending on what network you are on. You can also specify multiple comma-seperated targets in almost any command, including /msg. So /msg #chan1,#chan2,Nick1,Nick2,#chan3 Message, is technically possible... except most servers prohibit multiple targets to reduce spam.

The simple answer, most servers don't allow it
Don't be surprised if my suggestions dont work.

- Raccoon
Posted By: very_confused Re: msg multiple channels - 03/07/03 04:54 PM
/amsg works but i only want to msg certain channels on a network

/msg #uc,#oC Hello displays in #uc but not in #oC
Posted By: Raccoon Re: msg multiple channels - 03/07/03 04:58 PM
Those are the breaks, I'm afraid. You will have to send seperate messages to each channel. An alias can be written to automate this by breaking the channels into individual messages with a loop... but be careful not to flood yourself off with a large list.
Posted By: Jerk Re: msg multiple channels - 03/07/03 05:07 PM
It will display something like
-> *#chan1,#chan2* <message>
but the message is being sent to both channels. If you want it to look nice you are going to have to write your own msg alias that hides the real /msg and /echo's the message the way you want.
Posted By: Raccoon Re: msg multiple channels - 03/07/03 05:09 PM
He might have asked people in #oC (#chan2) if they saw the message or not.
Posted By: Jerk Re: msg multiple channels - 03/07/03 05:43 PM
You can still send all the msgs in one line. You just have to break up the /echo's.
Code:
alias mmsg {
  !.msg $$1 $$2-
  var %i = 1
  while ($gettok($1,%i,44) != $null) {
    var %target = $ifmatch
    if ((%target ischan) || ($query(%target))) {
      echo $color(normal) -bftlmi %target $+(&lt;,$me,&gt;) $2-
    }
    else {
      echo $color(normal) -abftlmi -&gt; $+(*,%target,*) $2-
    }
    inc %i
  }
}
It's a pretty simple alias without the bells and whistles. It wont color your own nick and it wont add the mode prefix. I am too lazy to throw that in.
Posted By: Raccoon Re: msg multiple channels - 03/07/03 05:50 PM
Actually, depending on the server/network you are on, you can't send the messages all in one line, but have to break the messages up aswell. It will indicate that "Message was not received by all targets" or "Cannot send to multiple targets" or "Too many recipients", etc.

- Raccoon
Posted By: very_confused Re: msg multiple channels - 03/07/03 06:28 PM
yeah the msg #uc,#oC does work i loaded a clone into the network the did it
thx
Posted By: kirankhan Re: msg multiple channels - 23/07/03 06:40 AM
hii
how r uuuuuuuu
Posted By: Clubfoot Re: msg multiple channels - 04/08/03 12:37 PM
alias mmsg var %m $2- | tokenize 44 $1 | .msg $* %m
© mIRC Discussion Forums