Difference between revisions of "Privmsg"

From Scriptwiki
Jump to: navigation, search
(added relatedraws template)
m (yet, the same)
 
Line 18: Line 18:
  
 
== See also ==
 
== See also ==
 
+
* {{Relatedraws|privmsg}}
[[Msg|/msg]] is the most common command to use when sending messages in scripts.<br />
+
* [[Msg|/msg]] is the most common command to use when sending messages in scripts.<br />
{{Relatedraws|privmsg}}
+
* [[On text|On text event]]
  
 
[[Category:Basic IRC commands]]
 
[[Category:Basic IRC commands]]

Latest revision as of 09:01, 2 July 2007

The command mIRC use when you are chatting in channels and queries.

privmsg <target> :<message>
  • <target> is where you want the message to end up. Can be multiple targets if you seperate them with a , (comma).
  • <message> needs to be prefixed with a : (semicolon), otherwise the IRC server will only take the first word after target.


Examples

The example below will send "Hi guys!" to the channel #help.script.

/privmsg #help.script :Hi guys!

The next will send "How are you?" to both Dana and #help.script.

/privmsg Dana,#help.script :How are you?

See also