Mercurial > wow > mylilpony
diff MyLilPony.lua @ 11:9052b32b69c3
Added support for conditionals in slash command.
author | syzler |
---|---|
date | Sat, 09 Apr 2011 03:15:21 +0000 |
parents | 7dfbf42c2d60 |
children | cca898af07b4 |
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$")