Difference between revisions of "Category:IAL"
m (No fingering! No, no, bad dog.) |
|||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
== Function of the IAL == | == Function of the IAL == | ||
− | The IAL is used in combination with user [[Access Levels|access levels]] for [[:Category:Events|events]]. There are 2 ways to add people to your access list: [[Auser|/auser]] and [[Guser|/guser]] (which does a [[Userhost|/userhost]] to look up their info and then adds them to the level you have specified by address, rather than just by nick alone.) To remove a nick from an access level, you can use the [[Ruser|/ruser]] command which uses the IAL itself. The mIRC commands [[Ban|/ban]], [[Ignore|/ignore | + | The IAL is used in combination with user [[Access Levels|access levels]] for [[:Category:Events|events]]. There are 2 ways to add people to your access list: [[Auser|/auser]] and [[Guser|/guser]] (which does a [[Userhost|/userhost]] to look up their info and then adds them to the level you have specified by address, rather than just by nick alone.) To remove a nick from an access level, you can use the [[Ruser|/ruser]] command which uses the IAL itself. The mIRC commands [[Ban|/ban]], [[Ignore|/ignore]], and [[Dns|/dns]] all use the IAL. |
== Showing the entire IAL == | == Showing the entire IAL == | ||
Line 15: | Line 15: | ||
; here we create a new window | ; here we create a new window | ||
[[window]] @IAL | [[window]] @IAL | ||
− | var %i = 1 | + | [[var]] %i = 1 |
; lets begin to loop through the entire IAL. $ial(*,0) returns the total number of items | ; lets begin to loop through the entire IAL. $ial(*,0) returns the total number of items | ||
[[while]] (%i <= [[$ial]](*,0)) { | [[while]] (%i <= [[$ial]](*,0)) { | ||
; we need to add every item of the IAL to the window @IAL | ; we need to add every item of the IAL to the window @IAL | ||
− | [[aline]] -p @IAL [[$chr]](160) $+ %i $+ . $ial(*,%i) | + | [[aline]] -p @IAL [[$chr]](160) [[DollarPlus|$+]] %i $+ . $ial(*,%i) |
; increase looping variable | ; increase looping variable | ||
[[inc]] %i | [[inc]] %i |
Latest revision as of 01:10, 23 June 2013
Internal Address List - IAL
Every user your mIRC "knows" is listed in an internal data structure known as the Internal Address List. It contains the full address, including the nick, user and host.domain for every nick in every channel you are in, including your own address. These are stored in a sorted list (alphabetically by full address). This internal structure can be turned off (useful if it's slowing you down when you're in big channels) using the /ial command.
Function of the IAL
The IAL is used in combination with user access levels for events. There are 2 ways to add people to your access list: /auser and /guser (which does a /userhost to look up their info and then adds them to the level you have specified by address, rather than just by nick alone.) To remove a nick from an access level, you can use the /ruser command which uses the IAL itself. The mIRC commands /ban, /ignore, and /dns all use the IAL.
Showing the entire IAL
If you want to take a look on your IAL, you can use the following script:
; lets make a new alias alias showial { ; here we create a new window window @IAL var %i = 1 ; lets begin to loop through the entire IAL. $ial(*,0) returns the total number of items while (%i <= $ial(*,0)) { ; we need to add every item of the IAL to the window @IAL aline -p @IAL $chr(160) $+ %i $+ . $ial(*,%i) ; increase looping variable inc %i } }