Mercurial > wow > mylilpony
changeset 11:9052b32b69c3
Added support for conditionals in slash command.
| author | syzler | 
|---|---|
| date | Sat, 09 Apr 2011 03:15:21 +0000 | 
| parents | 22ebe081af66 | 
| children | 6b227fa0697e | 
| files | MyLilPony.lua | 
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] | 
line wrap: on
 line diff
--- a/MyLilPony.lua Tue Apr 05 02:32:17 2011 +0000 +++ b/MyLilPony.lua Sat Apr 09 03:15:21 2011 +0000 @@ -99,7 +99,8 @@ MyLilPony.CallGroundMount(); end -function MyLilPony.SlashHandler(arg) +function MyLilPony.SlashHandler(args) + local arg = SecureCmdOptionParse(args); if MyLilPony.StringMatchIgnoreCase(arg, "^auto$") then MyLilPony.AutoMount(); elseif MyLilPony.StringMatchIgnoreCase(arg, "^random$")
