Mercurial > wow > mylilpony
comparison MyLilPony.lua @ 50:22011265a16f 1.2.0-b1
Updated and fixed for draenor xpack (patch 6.0) API changes
author | syzler |
---|---|
date | Sat, 07 Mar 2015 02:52:57 -0500 |
parents | 83e9649a6606 |
children | e15807a7d9b5 |
comparison
equal
deleted
inserted
replaced
49:d29ceeeab123 | 50:22011265a16f |
---|---|
156 if not result then | 156 if not result then |
157 MyLilPony.Log(L["msgNoMatchingMountsFound"]); | 157 MyLilPony.Log(L["msgNoMatchingMountsFound"]); |
158 end | 158 end |
159 elseif MyLilPony.StringMatchIgnoreCase(arg, "^exact .+$") | 159 elseif MyLilPony.StringMatchIgnoreCase(arg, "^exact .+$") |
160 or MyLilPony.StringMatchIgnoreCase(arg, "^x .+$") then | 160 or MyLilPony.StringMatchIgnoreCase(arg, "^x .+$") then |
161 local param = MyLilPony.StringMatchIgnoreCase(arg, "^.+ (.+)$"); | 161 local param = MyLilPony.StringMatch(arg, "^[^ ]+ (.+)$"); |
162 local result = MyLilPony.CallMountByName(param); | 162 local result = MyLilPony.CallMountByName(param); |
163 if not result then | 163 if not result then |
164 MyLilPony.Log(format(L["msgNoMatchingMountsForName"], param)); | 164 MyLilPony.Log(format(L["msgNoMatchingMountsForName"], param)); |
165 end | 165 end |
166 elseif MyLilPony.StringMatchIgnoreCase(arg, "^list .+$") | 166 elseif MyLilPony.StringMatchIgnoreCase(arg, "^list .+$") |
167 or MyLilPony.StringMatchIgnoreCase(arg, "^find .+$") | 167 or MyLilPony.StringMatchIgnoreCase(arg, "^find .+$") |
168 or MyLilPony.StringMatchIgnoreCase(arg, "^l .+$") then | 168 or MyLilPony.StringMatchIgnoreCase(arg, "^l .+$") then |
169 local param = MyLilPony.StringMatchIgnoreCase(arg, "^.+ (.+)$"); | 169 local param = MyLilPony.StringMatchIgnoreCase(arg, "^[^ ]+ (.+)$"); |
170 local result = MyLilPony.ListMountsByPattern(param); | 170 local result = MyLilPony.ListMountsByPattern(param); |
171 if not result then | 171 if not result then |
172 MyLilPony.Log(format(L["msgNoMatchingMountsForPattern"], param)); | 172 MyLilPony.Log(format(L["msgNoMatchingMountsForPattern"], param)); |
173 else | 173 else |
174 for _, name in pairs(result) do | 174 for _, name in pairs(result) do |