I know this thread is pretty old, but i would like to correct a major error with Phanx'es code, which is probably just a typo:
Lua Code:
if not type(dst) then
dst = { }
end
If the
not is not there it will auto reset your settings to the default one every time you log in.