From 30c8e8ebeeac9d95aa3b2c2d137c8089df0f9917 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sat, 26 Sep 2015 23:11:12 +0200 Subject: [PATCH] [_misc & fishing & whoison] Updates and fixes - _misc : Fix noshout (see https://github.com/MinetestForFun/server-minetestforfun-creative/commit/aebd448148cbf5617930a55202eb4ed69674aa0f) - fishing : update submodule's commit's reference - whoison : fix timeonline (see https://github.com/MinetestForFun/server-minetestforfun-creative/commit/eab339a3d3840082def4e67a8d4e8a84e9f36863) --- mods/_misc/noshout_messages.lua | 2 +- mods/fishing | 2 +- mods/whoison/init.lua | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mods/_misc/noshout_messages.lua b/mods/_misc/noshout_messages.lua index 54a31fa3..3f1b09fa 100755 --- a/mods/_misc/noshout_messages.lua +++ b/mods/_misc/noshout_messages.lua @@ -16,7 +16,7 @@ end minetest.register_on_joinplayer(function(player) local name = player:get_player_name() - if not minetest.check_player_privs(name, {interact=true}) and players[name] == nil then + if minetest.check_player_privs(name, {shout=false}) and players[name] == nil then minetest.after(5, tick, name) players[name] = true end diff --git a/mods/fishing b/mods/fishing index 14bdc521..d8777494 160000 --- a/mods/fishing +++ b/mods/fishing @@ -1 +1 @@ -Subproject commit 14bdc521f2d5d5a7dadb8ffda01e961a2aa51f0b +Subproject commit d8777494b31187e8717dc2fa07f40834d3b7084f diff --git a/mods/whoison/init.lua b/mods/whoison/init.lua index 6b17e3db..2595d19e 100755 --- a/mods/whoison/init.lua +++ b/mods/whoison/init.lua @@ -100,6 +100,9 @@ minetest.register_chatcommand("timeonline",{ description = "Shows the cumulative time a player has been online", func = function (name, param) if ( param ~= nil ) then + if param == "" then + param = name + end local t = whoison.getTimeOnline(param) if ( t ~= nil ) then minetest.chat_send_player(name,param.." has been online for "..breakdowntime(t)) @@ -107,7 +110,7 @@ minetest.register_chatcommand("timeonline",{ minetest.chat_send_player(name,"Sorry, I have no record of "..param) end else - minetest.chat_send_player(name,"Usage is /timeonline ") + minetest.chat_send_player(name,"Usage is /timeonline []") end end })