implement irc support
This commit is contained in:
parent
6d0cf09f77
commit
e024fcddaa
1
api.lua
1
api.lua
@ -2,7 +2,6 @@
|
||||
-- Chat mode assignment by moderator
|
||||
-- Implement support for custom privs
|
||||
-- Implement @-pings - play a sound to target player if @playername is mentioned
|
||||
-- IRC mode that sends to IRC when `irc` mod is loaded, as well as acting as `shout`
|
||||
|
||||
|
||||
|
||||
|
@ -10,6 +10,10 @@ chat_modes.register("shout", {
|
||||
end,
|
||||
|
||||
getPlayers = function()
|
||||
if minetest.get_modpath("irc") and irc then
|
||||
irc:say(message)
|
||||
end
|
||||
|
||||
return minetest.get_connected_players()
|
||||
end
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user