$ulist: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
* Properties: info
* Properties: info


You can specify a [[Wildcards|wildcard]] address or a * to match any address in the user list. If you don't specify a full address, it completes the address with wildcards. If you don't specify ''N'', the first matching address is returned.
You can specify a [[wildcard]] address or a * to match any address in the user list. If you don't specify a full address, it completes the address with wildcards. If you don't specify ''N'', the first matching address is returned.


If you specify ''L'', only matching addresses that contain the specified level are returned.
If you specify ''L'', only matching addresses that contain the specified level are returned.
Line 24: Line 24:


== See Also ==
== See Also ==
* [[Access Levels]] for more information on mIRCs internal userlist.


For more information on mIRCs internal userlist, see [[Access Levels]]
[[Category:Userlist]]
 
[[Category:Remote Identifiers]]
[[Category:Remote Identifiers]][[Category:Userlist]]

Latest revision as of 23:19, 2 February 2011

Returns the Nth address in the Users list that matches the specified address and level.

$ulist(nick!userid@address,L,N)
  • Properties: info

You can specify a wildcard address or a * to match any address in the user list. If you don't specify a full address, it completes the address with wildcards. If you don't specify N, the first matching address is returned.

If you specify L, only matching addresses that contain the specified level are returned.

Using the 'info' property it will return the info-line for the matched userlist entry.

  • Note: L and N are optional, but if you specify L, you must specify N.

Example

The following example will loop through the userlist and print/echo each entry.

var %x = 1
while (%x < $ulist(*!*@*,0)) {
  echo -a * %x $+ ) Mask: $ulist(*!*@*,%x) Level: $level($ulist(*!*@*,%x)) Info: $iif($ulist(*!*@*,%x).info,$v1,none)
  inc %x
}

See Also