diff --git a/commands.lua b/commands.lua index 8210665..b091b4e 100644 --- a/commands.lua +++ b/commands.lua @@ -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) diff --git a/init.lua b/init.lua index f746ff9..bc31b77 100644 --- a/init.lua +++ b/init.lua @@ -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