Quantcast

* Anchor the slash command patterns so we can /praid unlock again =)

James Whitehead II [04-20-07 - 02:00]
* Anchor the slash command patterns so we can /praid unlock again =)
Filename
PerfectRaid_Options.lua
diff --git a/PerfectRaid_Options.lua b/PerfectRaid_Options.lua
index dce0d43..cb8f19e 100644
--- a/PerfectRaid_Options.lua
+++ b/PerfectRaid_Options.lua
@@ -38,8 +38,8 @@ end
 function Options:Enable()
 	self.cmd = self:InitializeSlashCommand("PerfectRaid Options", "PERFECTRAID", "praid", "perfectraid")
 	self.cmd:RegisterSlashHandler(L["Show options GUI"], "^$", "ShowOptions")
-	self.cmd:RegisterSlashHandler(L["lock - Lock frames"], "lock", "LockFrames")
-	self.cmd:RegisterSlashHandler(L["unlock - Unlock frames"], "unlock", "UnlockFrames")
+	self.cmd:RegisterSlashHandler(L["lock - Lock frames"], "^lock$", "LockFrames")
+	self.cmd:RegisterSlashHandler(L["unlock - Unlock frames"], "^unlock$", "UnlockFrames")
 	--self.cmd:InjectDBCommands(PerfectRaid.db, "copy", "delete", "list", "reset", "set")
 end