From WikiChip
Editing mirc/commands/parseline
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{mirc title|/parseline | + | {{mirc title|/parseline Command}}{{mIRC menu}} |
+ | The '''/parseline command''' can be used to inject raw as though mIRC was receiving or sending them from/to the server. It can also be used to modify the line being received/sent from the {{mIRC|on parseline}} event. | ||
− | + | == Synopsis == | |
+ | /parseline -iotbpnuN [text|&binvar] | ||
− | + | /parseline -q[iotbqpnuN] [text|&binvar] | |
− | /parseline - | ||
− | |||
== Switches == | == Switches == | ||
Required | Required | ||
− | * '''-i or -o''' - | + | * '''-i or -o''' - Required, specify an input or output message |
− | * '''-t or -b''' - | + | * '''-t or -b''' - Required, specify a text or binvar parameter |
Optional | Optional | ||
Line 19: | Line 19: | ||
* '''-q''' - Can be used to add a new line to the end of the in/out queue, they are processed after the end of the script execution. | * '''-q''' - Can be used to add a new line to the end of the in/out queue, they are processed after the end of the script execution. | ||
** '''Note''': Without -q, you're changing the current line from the {{mIRC|on parseline}} event, you'll get an error otherwise. | ** '''Note''': Without -q, you're changing the current line from the {{mIRC|on parseline}} event, you'll get an error otherwise. | ||
− | |||
* '''-p''' - Used with -q, indicate the line must trigger on parseline | * '''-p''' - Used with -q, indicate the line must trigger on parseline | ||
− | * '''-n''' - Add a {{mIRC|$crlf}} to the end of the | + | * '''-n''' - Add a {{mIRC|$crlf}} to the end of the lien if the line doesn't already end with a $crlf |
* '''-uN''' - Enable/Disable utf8 encoding/decoding of the line. Use N = 1 to enable, 0 to disable | * '''-uN''' - Enable/Disable utf8 encoding/decoding of the line. Use N = 1 to enable, 0 to disable | ||
** '''Note''': A script must check $parseutf to know whether mIRC will be UTF-8 encoding/decoding a line. | ** '''Note''': A script must check $parseutf to know whether mIRC will be UTF-8 encoding/decoding a line. | ||
Line 35: | Line 34: | ||
//parseline -qitn bipartite.nj.us.SwiftIRC.net PRIVMSG #mIRCScripting :test | //parseline -qitn bipartite.nj.us.SwiftIRC.net PRIVMSG #mIRCScripting :test | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Compatibility == | == Compatibility == | ||
{{mIRC compatibility|7.42}} | {{mIRC compatibility|7.42}} | ||
− | == See also == | + | |
+ | == See also == | ||
+ | * [[List of commands - mIRC|List of commands]] | ||
+ | * [[List of identifiers - mIRC|List of identifiers]] | ||
* {{mIRC|on parseline}} | * {{mIRC|on parseline}} | ||
* {{mIRC|$parseutf}} | * {{mIRC|$parseutf}} | ||
− | |||
− | |||
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category:mIRC commands| | + | [[Category:mIRC commands|abook command - mIRC]] |