Skip to content

Commit

Permalink
fix: Point help config alias to correct script (#72)
Browse files Browse the repository at this point in the history
* bugfix: Call correct help in `map config` alias

`map.help.configs` does not exit, and should not exist because `show_help` parses the user-supplied argument in `map help` ... which has the command as singular `map config`. See Mudlet/Mudlet#3970

* Advance to v0.2.1-beta
  • Loading branch information
iLPdev authored Jul 10, 2020
1 parent 8e2be50 commit cd64f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ map.echo("Map debug set to: " .. (map.configs.debug and "on" or "off"))</script>
<name>Map Config Alias</name>
<script>-- adjust pattern to allow no argument, if no argument show general help about configs
if not matches[2] then
cecho(map.help.configs)
cecho(map.help.config)
else
local startStr, endStr = string.match(matches[2],"(.*) ([%w%.]+)")
local vals = {'on', 'off', 'true', 'false'}
Expand Down Expand Up @@ -734,7 +734,7 @@ end</script>
<Script isActive="yes" isFolder="no">
<name>discMapper</name>
<packageName></packageName>
<script>-- discMapper v0.2.0-beta
<script>-- discMapper v0.2.1-beta
-- forked from Jor'Mox's Generic Map Script 11/07/2018 version dated 10/20/2019 in Mudlet/src
local version = "2.0.16" -- Generic Map Script version

Expand Down

0 comments on commit cd64f16

Please sign in to comment.