Difference between revisions of "Limits"

From Scriptwiki
Jump to: navigation, search
m (9144 -> 4144)
m (Dialog edit boxes have a limit of 30,000 characters)
Line 1: Line 1:
<font color=#FF0000>'''Warning: These values may be outdated for mIRC v6.32. Updated and confirmed sections are marked with </font><font color=#00AA00>(Updated)'''</font>
+
<font color=#009900>'''Warning: Not all of these values are updated for mIRC v6.32 and above. Sections which remain to be confirmed are marked with </font><font color=#AA0000>(Untested)'''</font>
  
 
This page explains various limits imposed by mIRC, however this may not be a complete list. The length is measured in bytes (equivalent to ASCII characters, including spaces.)
 
This page explains various limits imposed by mIRC, however this may not be a complete list. The length is measured in bytes (equivalent to ASCII characters, including spaces.)
Line 8: Line 8:
 
<table border=2 rules=all cellpadding=4 style=text-align:center><tr>
 
<table border=2 rules=all cellpadding=4 style=text-align:center><tr>
 
<td>'''Name'''</td><td>'''Length'''</td><td>'''When exceeded'''</td><td>'''Description'''</td></tr><tr>
 
<td>'''Name'''</td><td>'''Length'''</td><td>'''When exceeded'''</td><td>'''Description'''</td></tr><tr>
<td colspan=0>'''Global limits <font color=#00AA00>(Updated)</font>'''</td></tr><tr>
+
<td colspan=0>'''Global limits'''</td></tr><tr>
 
<td>'''Line Length Limit'''<br>(''LLL'')</td><td>4150</td><td>Truncated or error<td style=text-align:left>To be precise: 4150 for evaluation results, 4151 for command lines (excluding command prefixes.)</td></tr><tr>
 
<td>'''Line Length Limit'''<br>(''LLL'')</td><td>4150</td><td>Truncated or error<td style=text-align:left>To be precise: 4150 for evaluation results, 4151 for command lines (excluding command prefixes.)</td></tr><tr>
 
<td>'''Variables'''<br>(local or global)</td><td>4150</td><td>Unset</td><td style=text-align:left>This limit includes the variable's name. Example: using "%a" as a name uses 3 bytes (2 for the name and 1 for a space.)<br>This means that for every extra character in the variable name, the maximum length of the value is reduced.<br>'''Note:''' the /set command further reduces the length limit to 4144 due to the 4 characters used by "set ". (LLL)</td></tr><tr>
 
<td>'''Variables'''<br>(local or global)</td><td>4150</td><td>Unset</td><td style=text-align:left>This limit includes the variable's name. Example: using "%a" as a name uses 3 bytes (2 for the name and 1 for a space.)<br>This means that for every extra character in the variable name, the maximum length of the value is reduced.<br>'''Note:''' the /set command further reduces the length limit to 4144 due to the 4 characters used by "set ". (LLL)</td></tr><tr>
 
<td colspan=0>'''IRC server specific'''</td></tr><tr>
 
<td colspan=0>'''IRC server specific'''</td></tr><tr>
<td>'''Incoming lines'''</td><td>601</td><td>Truncated</td><td style=text-align:left>Excludes CR/LF.</td></tr><tr>
+
<td>'''Incoming lines'''</td><td>601</td><td>Truncated</td><td style=text-align:left><font color=#AA0000>'''(Untested)'''</font> Excludes CR/LF.</td></tr><tr>
<td>'''Outgoing lines'''</td><td>LLL</td><td>Truncated</td><td style=text-align:left><font color=#00AA00>'''(Updated)'''</font></td></tr><tr>
+
<td>'''Outgoing lines'''</td><td>LLL</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
<td>'''Joined channel names'''</td><td>255</td><td>Parted immediately</td><td style=text-align:left><font color=#00AA00>'''(Updated)'''</font> Includes channel prefix.</td></tr><tr>
+
<td>'''Joined channel names'''</td><td>255</td><td>Parted immediately</td><td style=text-align:left>Includes channel prefix.</td></tr><tr>
<td>'''Channel keys'''</td><td>256</td><td>Truncated</td><td style=text-align:left><font color=#00AA00>'''(Updated)'''</font></td></tr><tr>
+
<td>'''Channel keys'''</td><td>256</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
<td>'''Addresses'''</td><td>90</td><td>Truncated</td><td style=text-align:left>The part of the full address after the "!"; only with JOIN/QUIT messages, addresses from WHO replies are not truncated.</td></tr><tr>
+
<td>'''Addresses'''</td><td>90</td><td>Truncated</td><td style=text-align:left><font color=#AA0000>'''(Untested)'''</font> The part of the full address after the "!"; only with JOIN/QUIT messages, addresses from WHO replies are not truncated.</td></tr><tr>
<td>'''Nicknames'''</td><td>50</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
+
<td>'''Nicknames'''</td><td>50</td><td>Truncated</td><td style=text-align:left><font color=#AA0000>'''(Untested)'''</font></td></tr><tr>
<td>'''Server passwords'''</td><td>50</td><td>Truncated</td><td style=text-align:left>As associated with server entries</td></tr><tr>
+
<td>'''Server passwords'''</td><td>50</td><td>Truncated</td><td style=text-align:left><font color=#AA0000>'''(Untested)'''</font> As associated with server entries</td></tr><tr>
 
<td colspan=0>'''CTCPs'''</td></tr><tr>
 
<td colspan=0>'''CTCPs'''</td></tr><tr>
<td>'''Incoming PING argument'''</td><td>24</td><td>No reply sent</td><td style=text-align:left>First character must be a digit; leading spaces ignored.</td></tr><tr>
+
<td>'''Incoming PING argument'''</td><td>24</td><td>No reply sent</td><td style=text-align:left><font color=#AA0000>'''(Untested)'''</font> First character must be a digit; leading spaces ignored.</td></tr><tr>
<td colspan=0>'''Sockets <font color=#00AA00>(Updated)</font>'''</td></tr><tr>
+
<td colspan=0>'''Sockets'''</td></tr><tr>
 
<td>'''Socket name'''</td><td>255</td><td>Error</td><td style=text-align:left></td></tr><tr>
 
<td>'''Socket name'''</td><td>255</td><td>Error</td><td style=text-align:left></td></tr><tr>
 
<td>'''Send buffer'''</td><td>16384</td><td>Error</td><td style=text-align:left>mIRC's own buffers, not WinSock's.</td></tr><tr>
 
<td>'''Send buffer'''</td><td>16384</td><td>Error</td><td style=text-align:left>mIRC's own buffers, not WinSock's.</td></tr><tr>
 
<td>'''Receive buffer'''</td><td>4096</td><td>Receipt stalls</td><td style=text-align:left>mIRC's own buffers, not WinSock's.</td></tr><tr>
 
<td>'''Receive buffer'''</td><td>4096</td><td>Receipt stalls</td><td style=text-align:left>mIRC's own buffers, not WinSock's.</td></tr><tr>
 
<td>'''Socket mark'''</td><td>LLL</td><td></td><td style=text-align:left>Not 512 as the helpfile says.</td></tr><tr>
 
<td>'''Socket mark'''</td><td>LLL</td><td></td><td style=text-align:left>Not 512 as the helpfile says.</td></tr><tr>
<td colspan=0>'''Hashtables <font color=#00AA00>(Updated)</font>'''</td></tr><tr>
+
<td colspan=0>'''Hashtables'''</td></tr><tr>
 
<td>'''Hashtable name'''</td><td>256</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
 
<td>'''Hashtable name'''</td><td>256</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
 
<td>'''Hashtable size'''</td><td>10000</td><td>Error</td><td style=text-align:left>In number of buckets</td></tr><tr>
 
<td>'''Hashtable size'''</td><td>10000</td><td>Error</td><td style=text-align:left>In number of buckets</td></tr><tr>
<td colspan=0>'''GUI <font color=#00AA00>(Updated)</font>'''</td></tr><tr>
+
<td colspan=0>'''GUI'''</td></tr><tr>
<td>'''Editbox'''</td><td>1024</td><td>Sent</td><td style=text-align:left>Editbox is cleared afterwards, similar to pressing Enter.</td></tr><tr>
+
<td>'''Edit box'''</td><td>1024</td><td>Sent</td><td style=text-align:left>Edit box is cleared afterwards, similar to pressing Enter.</td></tr><tr>
<td colspan=0>'''Dialogs <font color=#00AA00>(Updated)</font>'''</td></tr><tr>
+
<td colspan=0>'''Dialogs'''</td></tr><tr>
 
<td>'''Dialog name'''</td><td>256</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
 
<td>'''Dialog name'''</td><td>256</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
 
<td>'''Input dialog text field'''</td><td>1023</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
 
<td>'''Input dialog text field'''</td><td>1023</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
<td colspan=0>'''Files <font color=#00AA00>(Updated)</font>'''</td></tr><tr>
+
<td>'''Edit box'''</td><td>30000</td><td>Truncated</td><td style=text-align:left></td></tr><tr>
 +
<td colspan=0>'''Files'''</td></tr><tr>
 
<td>'''Line of text'''</td><td>4149</td><td>Split</td><td style=text-align:left>Excluding CR/LF. Applies to all file-related commands/identifiers.</td>
 
<td>'''Line of text'''</td><td>4149</td><td>Split</td><td style=text-align:left>Excluding CR/LF. Applies to all file-related commands/identifiers.</td>
 
</tr></table>
 
</tr></table>
  
 
[[Category:mIRC]]
 
[[Category:mIRC]]

Revision as of 22:43, 2 May 2009

Warning: Not all of these values are updated for mIRC v6.32 and above. Sections which remain to be confirmed are marked with (Untested)

This page explains various limits imposed by mIRC, however this may not be a complete list. The length is measured in bytes (equivalent to ASCII characters, including spaces.)

You can find the original limits page here.

mIRC

NameLengthWhen exceededDescription
Global limits
Line Length Limit
(LLL)
4150Truncated or errorTo be precise: 4150 for evaluation results, 4151 for command lines (excluding command prefixes.)
Variables
(local or global)
4150UnsetThis limit includes the variable's name. Example: using "%a" as a name uses 3 bytes (2 for the name and 1 for a space.)
This means that for every extra character in the variable name, the maximum length of the value is reduced.
Note: the /set command further reduces the length limit to 4144 due to the 4 characters used by "set ". (LLL)
IRC server specific
Incoming lines601Truncated(Untested) Excludes CR/LF.
Outgoing linesLLLTruncated
Joined channel names255Parted immediatelyIncludes channel prefix.
Channel keys256Truncated
Addresses90Truncated(Untested) The part of the full address after the "!"; only with JOIN/QUIT messages, addresses from WHO replies are not truncated.
Nicknames50Truncated(Untested)
Server passwords50Truncated(Untested) As associated with server entries
CTCPs
Incoming PING argument24No reply sent(Untested) First character must be a digit; leading spaces ignored.
Sockets
Socket name255Error
Send buffer16384ErrormIRC's own buffers, not WinSock's.
Receive buffer4096Receipt stallsmIRC's own buffers, not WinSock's.
Socket markLLLNot 512 as the helpfile says.
Hashtables
Hashtable name256Truncated
Hashtable size10000ErrorIn number of buckets
GUI
Edit box1024SentEdit box is cleared afterwards, similar to pressing Enter.
Dialogs
Dialog name256Truncated
Input dialog text field1023Truncated
Edit box30000Truncated
Files
Line of text4149SplitExcluding CR/LF. Applies to all file-related commands/identifiers.