diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-13 15:29:16 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-13 15:29:20 -0700 |
| commit | 25e06d1fce660e7c8144425b440f7b1c698e2fb7 (patch) | |
| tree | 3636abb32881a757ba907c2a8cf218090e6d28bd /nomsu.lua | |
| parent | 8f6f941d897a5678ab09bb9b21e0274743857587 (diff) | |
Getting closer.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1658,7 +1658,12 @@ if arg and debug_getinfo(2).func ~= require then local metadata = nomsu.action_metadata[info.func] if metadata then info.name = metadata.aliases[1] - local filename = metadata.source:match("^[^[:]*") + local filename + if type(metadata.source) == 'string' then + filename = metadata.source:match("^[^[:]*") + else + filename = metadata.source.filename + end info.short_src = filename info.source = FILE_CACHE[filename] local linedefined |
