Make sure string is lowercase from UI

Scott Yeskie [07-21-16 - 00:09]
Make sure string is lowercase from UI

All chat messages are converted to lowercase before being checked.
From the UI, it didn't convert the configuration string, so if the user
entered an uppercase string, the addon wouldn't work.
Filename
AutoInvite.txt
lua/cli.lua
ui/ai_enabled_fragment.lua
diff --git a/AutoInvite.txt b/AutoInvite.txt
index 47596c0..c2d16d8 100644
--- a/AutoInvite.txt
+++ b/AutoInvite.txt
@@ -1,6 +1,6 @@
 ## APIVersion: 100015
 ## Title: AutoInvite
-## Version: 2.4.0
+## Version: 2.4.1
 ## Author: Sasky, |cFF5FF5Kyoma|r & |c009ad6silentgecko|r
 ## SavedVariables: AutoInviteSettings
 ## OptionalDependsOn: LibAddonMenu-2.0
diff --git a/lua/cli.lua b/lua/cli.lua
index 33b414e..6ab0011 100644
--- a/lua/cli.lua
+++ b/lua/cli.lua
@@ -58,6 +58,7 @@ end
 SLASH_COMMANDS["/aidebug"] = function()
     echo("|cFF0000Beginning debug mode for AutoInvite.")
     AutoInvite.debug = true
+    echo("Enabled? " .. b(AutoInvite.enabled) .. " / Listening? " .. b(AutoInvite.listening))
 end

 SLASH_COMMANDS["/airesponse"] = function()
diff --git a/ui/ai_enabled_fragment.lua b/ui/ai_enabled_fragment.lua
index daf1378..55059e6 100644
--- a/ui/ai_enabled_fragment.lua
+++ b/ui/ai_enabled_fragment.lua
@@ -54,7 +54,7 @@ function AutoInviteUI:CreateEnabledFragment()
         name = GetString(SI_AUTO_INVITE_OPT_STRING),
         tooltip = GetString(SI_AUTO_INVITE_TT_STRING),
         getFunc = function() return AutoInvite.cfg.watchStr end,
-        setFunc = function(val) AutoInvite.cfg.watchStr = val end,
+        setFunc = function(val) AutoInvite.cfg.watchStr = string.lower(val) end,
     })
     ui.text.container:SetWidth(140)
     ui.text:SetAnchor(TOPRIGHT, ZO_GroupList, TOPRIGHT, -40, -15)