mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-12-22 22:22:25 +01:00
check irc.saysec func
This commit is contained in:
parent
d5117240db
commit
e664688d3f
@ -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)
|
||||
|
7
init.lua
7
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
|
||||
|
Loading…
Reference in New Issue
Block a user