8,282
edits
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
local filePrefix,fileName = s:match("(.+):(.+)") | local filePrefix,fileName = s:match("(.+):(.+)") | ||
if file:match( '%.gif$' ) or file:match( '%.png$' ) then | if file:match( '%.gif$' ) or file:match( '%.png$' ) then | ||
file = filePrefix .. 'Invicon ' .. fileName | if filePrefix == nil then | ||
file = 'Invicon ' .. file | |||
else | |||
file = filePrefix .. 'Invicon ' .. fileName | |||
end | |||
else | else | ||
file = filePrefix 'Invicon ' .. fileName .. '.png' | if filePrefix == nil then | ||
file = 'Invicon ' .. file .. '.png' | |||
else | |||
file = filePrefix 'Invicon ' .. fileName .. '.png' | |||
end | |||
end | end | ||