mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
fixed crash if irc mod disabled
This commit is contained in:
parent
33b9b0b7ff
commit
9904ae3bda
@ -119,8 +119,9 @@ if RANDOM_MESSAGES == true then
|
|||||||
|
|
||||||
-- Actually tell something
|
-- Actually tell something
|
||||||
minetest.chat_send_all(death_message)
|
minetest.chat_send_all(death_message)
|
||||||
irc:say(death_message)
|
if minetest.get_modpath("irc") ~= nil then
|
||||||
|
irc:say(death_message)
|
||||||
|
end
|
||||||
minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player:get_player_name(),gain=soundset.get_gain(player:get_player_name(),"other")})
|
minetest.sound_play(sounds[math.random(1,#sounds)],{to_player=player:get_player_name(),gain=soundset.get_gain(player:get_player_name(),"other")})
|
||||||
sound_play_all(player:get_player_name())
|
sound_play_all(player:get_player_name())
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user