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 command}}'''/parseline''' can be used to inject lines as though mIRC was receiving or sending them from/to IRC servers. It can also be used to modify the line being received/sent from the {{mIRC|on parseline}} event.
+
{{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.
  
'''Warning''': This feature should only be used, for example, to support features and/or protocols that mIRC does not already support, not to modify standard lines. mIRC maintains internal states based on incoming and outgoing lines. If lines are modified, mIRC may not work correctly
+
== Synopsis ==
  
 +
/parseline -iotbpnuN [text|&binvar]
  
== Synopsis ==
+
/parseline -q[iotbqpnuN] [text|&binvar]
/parseline -aiotbpnuN [text|&binvar]
 
  
/parseline -q[aiotbpnuN] [text|&binvar]
 
  
 
== Switches ==
 
== Switches ==
 
Required
 
Required
  
* '''-i or -o''' - Specify an input or output message
+
* '''-i or -o''' - Required, specify an input or output message
* '''-t or -b''' - Specify a text or binvar parameter
+
* '''-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.
* '''-a''' - modifier for -t and -b, codepoints 128-255 are not encoded to UTF8 if no codepoint above 255 is found
 
 
* '''-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 line if the line doesn't already end with a $crlf
+
* '''-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>
 
Keep a window open after parting the channel is now possible:
 
<syntaxhighlight lang="mIRC">
 
on *:PARSELINE:in:?* PART #*:if ($gettok($mid($parseline,2),1,33) == $me) .parseline -it
 
</syntaxhighlight>
 
'''Note''': You'll have to use "/parseline -qot join #channel" to join the channel back, this is because /join does not /join if the window exist, assuming you're on the channel
 
  
 
== 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}}
* [[List of commands - mIRC|List of commands]]
 
* [[List of identifiers - mIRC|List of identifiers]]
 
  
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:mIRC commands|parseline]]
+
[[Category:mIRC commands|abook command - mIRC]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)