mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +01:00
Check whether or not irc is enable before looking for its object
This commit is contained in:
parent
5a87525357
commit
3189fa48d4
@ -43,7 +43,7 @@ data.send_func = function(name, msg) minetest.chat_send_player(name, msg) end
|
|||||||
|
|
||||||
if data.PUB_MSG then
|
if data.PUB_MSG then
|
||||||
data.send_func = function (name, msg)
|
data.send_func = function (name, msg)
|
||||||
if irc then
|
if minetest.get_modpath("irc") then
|
||||||
irc:say(msg)
|
irc:say(msg)
|
||||||
end
|
end
|
||||||
minetest.chat_send_all(msg)
|
minetest.chat_send_all(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user