Skip to content

Inconsistent chat message when shops without items found #11

Description

@S-S-X

if data and #data > 0 then
minetest.chat_send_player(playername, "Got " .. #data .. " results")
show_formspec(playername, data)

[13:59.51] <pandorabot> <Yang> why does the /search give more results than it shows? i was searching for a shop and it gave me 5 results but showed 3
[14:01.11] <pandorabot> <SX> sounds like a bug in mod
[14:03.41] <pandorabot> <OgelGames@Discord> doesnt show out of stock shops, but must still count them...
[14:04.08] <pandorabot> <Yang> stock shops?
[14:04.20] <pandorabot> <SolDeNoche> shops that are sold o
[14:04.32] <pandorabot> <Yang> oh
[14:07.16] <pandorabot> <SX> chat message could be moved to show_formspec to easily fix result counts and also possibly show how many out of stock shops
were found
[14:08.50] <pandorabot> <SX> or even add separate filtering function before show_formspec, could be better

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions