From WikiChip
Difference between revisions of "mirc/commands/msg"
< mirc‎ | commands

(Created page with "The '''/msg command''' sends a message to a specific channel or person. Many networks support multi-target messages - mIRC will not display the message in all the targets like...")
 
Line 10: Line 10:
 
* '''<nickname/channel>''' - The target channel or person for the message
 
* '''<nickname/channel>''' - The target channel or person for the message
 
* '''<message>''' - The message to be sent
 
* '''<message>''' - The message to be sent
 +
 +
'''Note:''' An equals sign, '''=''', when attached to a given nickname, allows the message to be sent to any open [[/dcc command - mIRC|/dcc chat]] or [[/fserve command - mIRC|/fserve]] windows with the remote user. See below for an example.
  
 
== Example ==
 
== Example ==
 +
=== Example 1: ===
 
<syntaxhighlight lang="mIRC">on *:text:!moo:#:{
 
<syntaxhighlight lang="mIRC">on *:text:!moo:#:{
 
   ; Message the channel moos back
 
   ; Message the channel moos back
Line 17: Line 20:
 
}</syntaxhighlight>
 
}</syntaxhighlight>
  
Example 2:
+
=== Example 2: ===
  
 
<syntaxhighlight lang="mIRC">/* Example 2
 
<syntaxhighlight lang="mIRC">/* Example 2
Line 27: Line 30:
 
   halt
 
   halt
 
}</syntaxhighlight>
 
}</syntaxhighlight>
 +
 +
=== Example 3: Using the equals sign to send 'SomeUser' a message via DCC/FSERVE Chat ===
 +
<source lang="mIRC">//msg =SomeUser Hey there, this is going to your open DCC/FSERVE Chat window, instead!</source>
  
 
== Compatibility ==
 
== Compatibility ==

Revision as of 15:54, 29 June 2014

The /msg command sends a message to a specific channel or person. Many networks support multi-target messages - mIRC will not display the message in all the targets like it would with individual messages.

Synopsis

/msg <nickname/channel> <message>

Switches

None

Parameters

  • <nickname/channel> - The target channel or person for the message
  • <message> - The message to be sent

Note: An equals sign, =, when attached to a given nickname, allows the message to be sent to any open /dcc chat or /fserve windows with the remote user. See below for an example.

Example

Example 1:

on *:text:!moo:#:{
  ; Message the channel moos back
  msg $chan moos back
}

Example 2:

/* Example 2
*/
on ^*:open:?:{
  if ($away) {
    msg $nick I am currently away ( $+ $awaymsg $+ ), please leave me a memo: /ms send $me <memo>
  }
  halt
}

Example 3: Using the equals sign to send 'SomeUser' a message via DCC/FSERVE Chat

//msg =SomeUser Hey there, this is going to your open DCC/FSERVE Chat window, instead!

Compatibility

Added: mIRC v2.1a

Added On: 28/02/1995

Note: Individual switches were not taken into consideration.

See also