Mercurial > wow > mylilpony
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 10:22ebe081af66 | 11:9052b32b69c3 |
|---|---|
| 97 end | 97 end |
| 98 | 98 |
| 99 MyLilPony.CallGroundMount(); | 99 MyLilPony.CallGroundMount(); |
| 100 end | 100 end |
| 101 | 101 |
| 102 function MyLilPony.SlashHandler(arg) | 102 function MyLilPony.SlashHandler(args) |
| 103 local arg = SecureCmdOptionParse(args); | |
| 103 if MyLilPony.StringMatchIgnoreCase(arg, "^auto$") then | 104 if MyLilPony.StringMatchIgnoreCase(arg, "^auto$") then |
| 104 MyLilPony.AutoMount(); | 105 MyLilPony.AutoMount(); |
| 105 elseif MyLilPony.StringMatchIgnoreCase(arg, "^random$") | 106 elseif MyLilPony.StringMatchIgnoreCase(arg, "^random$") |
| 106 or MyLilPony.StringMatchIgnoreCase(arg, "^rand$") | 107 or MyLilPony.StringMatchIgnoreCase(arg, "^rand$") |
| 107 or MyLilPony.StringMatchIgnoreCase(arg, "^rng$") | 108 or MyLilPony.StringMatchIgnoreCase(arg, "^rng$") |
