mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #02431
[Bug 1037410] Re: Non-boolean return values aren't accepted as true in Lua functions
** Changed in: mudlet
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1037410
Title:
Non-boolean return values aren't accepted as true in Lua functions
Status in Mudlet the MUD client:
Fix Released
Bug description:
Lua function pattern type requires an explicit boolean of 'true' to go
off, while the notation in Lua is that just nil and false are false.
It would be convenient to have the function accept things as true as
Lua does, so you can shorten, for example:
return line:find(vs.shiptarget, 1, true) and true or false
Just to:
return line:find(vs.shiptarget, 1, true)
Which is shorter and more intuitive.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1037410/+subscriptions
References