Fix incorrect API usage or irc mod.

This commit is contained in:
Auke Kok 2019-08-08 11:34:27 -07:00
parent 139dd7a2af
commit 4f6f1ce9c3

View File

@ -33,7 +33,7 @@ function announce.player(name, msg)
minetest.log("action", "announce to " .. name .. ": " .. msg) minetest.log("action", "announce to " .. name .. ": " .. msg)
minetest.chat_send_player(name, msg) minetest.chat_send_player(name, msg)
if irc and irc.joined_players[name] then if irc and irc.joined_players[name] then
irc.whisper(name, msg) irc.say(name, msg)
end end
end end
@ -49,7 +49,7 @@ function announce.admins(msg)
local admins = string.split(string.gsub(irclist, " ", ""), ",") local admins = string.split(string.gsub(irclist, " ", ""), ",")
for _, name in pairs(admins) do for _, name in pairs(admins) do
if irc.joined_players[name] then if irc.joined_players[name] then
irc.whisper(name, msg) irc.say(name, msg)
end end
end end
end end