From e1a000a5f91a15115c1724f3382f3698ac9b0596 Mon Sep 17 00:00:00 2001 From: Arcidayne <9382522b@opayq.com> Date: Sat, 28 Nov 2015 15:13:04 -0800 Subject: [PATCH] Themed Tracker! --- Themed_Tracker/Themed_Tracker.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Themed_Tracker/Themed_Tracker.xml b/Themed_Tracker/Themed_Tracker.xml index bcaa71e..1875260 100644 --- a/Themed_Tracker/Themed_Tracker.xml +++ b/Themed_Tracker/Themed_Tracker.xml @@ -303,8 +303,8 @@ function custom_theme(name, field, color) end if theme_check == 1 then - for _,v in pairs(tracker_db.themes[theme_num]) do - if string.lower(v) == string.lower(field) then + for i,_ in pairs(tracker_db.themes[theme_num]) do + if string.lower(i) == string.lower(field) then field_check = 1 end end @@ -317,6 +317,7 @@ function custom_theme(name, field, color) else ColourNote(tracker_db.themes[tracker_db.set_theme].text, "", "Theme ", tracker_db.themes[tracker_db.set_theme].special, "", name, tracker_db.themes[tracker_db.set_theme].text, "", " not found. Did you ", tracker_db.themes[tracker_db.set_theme].special, "", "addtheme", tracker_db.themes[tracker_db.set_theme].text, "", " it yet?") end + SetVariable("atracker", serialize.save("tracker_db")) end function OnPluginBroadcast (msg, id, name, text)