From WikiChip
Editing mirc/identifiers/$address

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 4: Line 4:
  
 
Otherwise, it returns the address of the specified nickname in the given type.
 
Otherwise, it returns the address of the specified nickname in the given type.
 
 
 
== Synopsis ==
 
== Synopsis ==
 
<pre>$address</pre>
 
<pre>$address</pre>
 
<pre>$address(<nick>,<type>)</pre>
 
<pre>$address(<nick>,<type>)</pre>
  
'''Note''': $address returns $null string if the {{mIRC|$ial}} doesn't contain the address for this nick.
+
;Note: $address returns $null string if the {{mIRC|$ial}} doesn't contain the address for this nick.
  
 
== Parameters ==
 
== Parameters ==
Line 17: Line 15:
  
 
<span style="display: inline-block; width: 50px;">'''N'''</span>The type of address, a positive integer between 1-19.
 
<span style="display: inline-block; width: 50px;">'''N'''</span>The type of address, a positive integer between 1-19.
<!-- //.parseline -qit :nick!user@host JOIN $active Testing :testing 1 2 3 -->
 
<!-- //var %x 0 | while (%x < 10) { echo -ag * %x $+ : $address(nick,%x) | inc %x }  -->
 
 
 
* 0: *!user@host
 
* 0: *!user@host
* 1: *!*user@host
+
* 1: *!*user@host
* 2: *!*@host
+
* 2: *!*@host
* 3: *!*user@host
+
* 3: *!*user@*.host
* 4: *!*@host
+
* 4: *!*@*.host
* 5: nick!user@host
+
* 5: nick!user@host
* 6: nick!*user@host
+
* 6: nick!*user@host
* 7: nick!*@host
+
* 7: nick!*@host
* 8: nick!*user@host
+
* 8: nick!*user@*.host
* 9: nick!*@host
+
* 9: nick!*@*.host
  
 
Type 10-19 are same as types 0-9 except asterisks in host are expanded to the text they replaced, then all numbers are replaced by question marks.<br />
 
Type 10-19 are same as types 0-9 except asterisks in host are expanded to the text they replaced, then all numbers are replaced by question marks.<br />
Line 37: Line 32:
 
'''Note:''' Using the NICK portion of an address mask can cause a false negative when it keeps from matching someone if they're using one of their other nicks, and can cause a false positive if the server doesn't prevent people from using that nick without identifying to Nickserv.
 
'''Note:''' Using the NICK portion of an address mask can cause a false negative when it keeps from matching someone if they're using one of their other nicks, and can cause a false positive if the server doesn't prevent people from using that nick without identifying to Nickserv.
  
"user" is easily changeable by someone editing their mIRC settings then reconnecting to the server. Be careful about using Type-4 mask to defend against that, because the @*.host {{mirc|wildcard}} can match other users who also use the same internet provider. Disguised IP masks created by usermode +x are in the format of hexnumber#1.hexnumber#2.hexnumber#3.IP. For IPv4 addresses, the default method for creating the shadow mask is built on IP address style N1.N2.N3.N4, and hexnumber#3 is the same for all IP addresses N1.N2.*.*, hexnumber#2 is the same for all N1.N2.N3.* addresses, and generates the same disguised IP address each time the same IP address is scrambled.<br />
+
"user" is easily changeable by someone editing their mIRC settings then reconnecting to the server. Be careful about using Type-4 mask to defend against that, because the @*.host wildcard can match other users who also use the same internet provider. Disguised IP masks created by usermode +x are in the format of hexnumber#1.hexnumber#2.hexnumber#3.IP. For IPv4 addresses, the default method for creating the shadow mask is built on IP address style N1.N2.N3.N4, and hexnumber#3 is the same for all IP addresses N1.N2.*.*, hexnumber#2 is the same for all N1.N2.N3.* addresses, and generates the same disguised IP address each time the same IP address is scrambled.<br />
  
 
== Properties ==
 
== Properties ==
Line 51: Line 46:
 
</source>
 
</source>
  
'''Bug:''' mIRC incorrectly creates {{mirc|wildcard}} mask *user as if disabling identd drops the 1st character of userid in order to add the ~ tilde and as if it doesn't drop the 10th letter of the UserID in order to fit the tilde into a 10-character UserID string. mIRC creates *user by replacing the 1st letter of USER with an asterisk, regardless whether or not it's a tilde - i.e. $+(*,$mid(UserID,2)). This causes a wildcard mask for an identd UserID of 10 characters that isn't matched both with/without identd enabled, and needlessly matches short UserID hosts which differ only in the first letter.<br />
+
'''Bug:''' mIRC incorrectly creates wildcard mask *user as if disabling identd drops the 1st character of userid in order to add the ~ tilde and as if it doesn't drop the 10th letter of the UserID in order to fit the tilde into a 10-character UserID string. mIRC creates *user by replacing the 1st letter of USER with an asterisk, regardless whether or not it's a tilde - i.e. $+(*,$mid(UserID,2)). This causes a wildcard mask for an identd UserID of 10 characters that isn't matched both with/without identd enabled, and needlessly matches short UserID hosts which differ only in the first letter.<br />
  
 
If your UserID string is ABCDEFGHIJ, your address appears like ABCDEFGHIJ@host when identd is enabled and appears as ~ABCDEFGHI@host when it's disabled. When identd is enabled, the Type-3 *user mask is *BCDEFGHIJ@*.host, and *ABCDEFGHI@*.host when identd is disabled. (The server drops the last letter of the UserID only when the tilde causes the length to exceed 10, so RAT@host losing identd becomes address ~RAT@host without dropping the ending letter.)<br />
 
If your UserID string is ABCDEFGHIJ, your address appears like ABCDEFGHIJ@host when identd is enabled and appears as ~ABCDEFGHI@host when it's disabled. When identd is enabled, the Type-3 *user mask is *BCDEFGHIJ@*.host, and *ABCDEFGHI@*.host when identd is disabled. (The server drops the last letter of the UserID only when the tilde causes the length to exceed 10, so RAT@host losing identd becomes address ~RAT@host without dropping the ending letter.)<br />
Line 78: Line 73:
 
* {{mIRC|$wildsite}}
 
* {{mIRC|$wildsite}}
  
[[Category:mIRC identifiers|address]]
+
[[Category:MIRC identifiers]]

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)