Difference between revisions of "$protect"

From Scriptwiki
Jump to: navigation, search
 
m
 
Line 20: Line 20:
  
 
== See Also ==
 
== See Also ==
To add or remove an address/nick to/from your protection list, take a look at [[Protect|/protect]].
+
* [[Protect|/protect]] to add or remove an address/nick to/from your protection list.
  
 
[[Category:Control]]
 
[[Category:Control]]
 
[[Category:Other Identifiers]]
 
[[Category:Other Identifiers]]

Latest revision as of 10:18, 2 July 2007

Returns infomation about your protection list.

$protect(N/address)

Note that $protect will return $true if your protection is turned on, otherwise $false.

If you specify an address, the first matching address in the protection list is returned.


$protect(N/address) has two properties:

  • type returns the list of channels, the user would be protected in.
  • network returns the network it is associated to, if any.

Example

echo -a $protect

Will echo $true to your active window as protection is turned on usually.


echo -a $protect(1).type

This will echo the list of channels the first entry in your protection list would be protected in.

See Also

  • /protect to add or remove an address/nick to/from your protection list.