3 Commits

Author SHA1 Message Date
ee81559532 Merge remote-tracking branch 'upstream/master' 2020-07-19 22:39:46 +02:00
7fbbfd6cdb Fix failing luacheck 2020-07-18 18:00:38 +02:00
cc78f12a4c Display total number of players with /who (#65) 2020-07-18 17:57:42 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ minetest.register_on_chat_message(function(name, message)
if nl then if nl then
message = message:sub(1, nl - 1) message = message:sub(1, nl - 1)
end end
irc.say(irc.playerMessage(name, core.strip_colors(message))) irc.say(irc.playerMessage(name, minetest.strip_colors(message)))
end) end)

View File

@ -47,7 +47,7 @@ minetest.register_chatcommand("who", {
out[n] = plname out[n] = plname
end end
table.sort(out) table.sort(out)
return true, "Players in channel: "..table.concat(out, ", ") return true, n.." player(s) in channel: "..table.concat(out, ", ")
end end
}) })