check irc.saysec func

This commit is contained in:
Freeman 2023-03-16 23:16:11 +01:00
parent d5117240db
commit e664688d3f
2 changed files with 1 additions and 8 deletions

@ -41,7 +41,7 @@ core.register_chatcommand("pay", {
if bankemeralds1 >= num then
core.chat_send_player(name, S("Pay Successfully! You have transferred @1 Emeralds." , num) )
core.chat_send_player(playername2, S("Pay Successfully! You've gotten @1 Emeralds.", num) )
if core.get_modpath("irc") then
if core.get_modpath("irc") and irc.saysec then
irc.saysec(name.." has transferred "..num.." emeralds to "..playername2)
end
emeraldbank.add_emeralds(player1, -num)

@ -23,13 +23,6 @@ local modpath = core.get_modpath(core.get_current_modname())
emeraldbank = {}
-- compat with irc mod fork
if core.get_modpath("irc") then
if not irc.saysec then
irc.saysec = irc.say
end
end
local income_enabled = core.settings:get_bool("emeraldbank.income_enabled", true)
if income_enabled then