v0.13.8

issecurevariable

functionimplementedavailable in: camelot

Returns true if the specified variable is secure.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
tbltable?table to check the the key in; if omitted, defaults to the globals table (_G).
variablestringstring key to check the taint of. Numbers will be converted to a string; other types will throw an error.

Returns

#nametypedescription
1isSecurebooleantrue if the table[variable] key is secure, false if it is tainted.
2taintstring?name of the addon that tainted the table field; an empty string if tainted by a macro; nil if secure.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.