mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 01:50: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
|
||||
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")})
|
||||
sound_play_all(player:get_player_name())
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue
Block a user