diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index 0c6a9468..466c3d97 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -589,8 +589,14 @@ end function sendMessage(message, tab) local tab = tab or getCurrentTab() + if not tab then return end - if tab == getRuleViolationsTab() then return end + -- when talking on server log, the message goes to default channel + local name = tab:getText() + if tab == serverTab or tab == getRuleViolationsTab() then + tab = defaultTab + name = defaultTab:getText() + end -- handling chat commands local originalMessage = message @@ -630,13 +636,6 @@ function sendMessage(message, tab) end end - -- when talking on server log, the message goes to default channel - local name = tab:getText() - if tab == serverTab then - tab = defaultTab - name = defaultTab:getText() - end - local speaktypedesc if (tab.channelId or tab == defaultTab) and not chatCommandPrivateReady then if tab == defaultTab then diff --git a/modules/game_skills/skills.lua b/modules/game_skills/skills.lua index 8f1d8368..181d50d9 100644 --- a/modules/game_skills/skills.lua +++ b/modules/game_skills/skills.lua @@ -241,7 +241,7 @@ function checkExpSpeed() player.lastExps = {} end table.insert(player.lastExps, {currentExp, currentTime}) - if #player.lastExps > 10 then + if #player.lastExps > 30 then table.remove(player.lastExps, 1) end end