Privmsg: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
No edit summary
 
m yet, the same
 
(One intermediate revision by one other user not shown)
Line 18: Line 18:


== See also ==
== See also ==
 
* {{Relatedraws|privmsg}}
[[Msg|/msg]] is the most common command to use when sending messages in scripts.
* [[Msg|/msg]] is the most common command to use when sending messages in scripts.<br />
* [[On text|On text event]]


[[Category:Basic IRC commands]]
[[Category:Basic IRC commands]]

Latest revision as of 07: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