Thread: Slash commands
View Single Post
04-03-09, 02:19 PM   #6
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Slakah View Post
I just use "ADDON_LOADED" as all of my mods use AddonLoader.

Also as a slight aside I couldn't help but notice this
nil == nil, there's really no need for an extra function call, which is odd as you seem determined to avoid them here
Code:
for k, v in next, defaults do
this checks the entries
Code:
if(type(pMinimapDB[k]) == 'nil') then
this checks if the value has been reset and/or does not exist.

if so, proceed to add the default settings.
  Reply With Quote