1
0
mirror of https://github.com/minetest-mods/irc.git synced 2025-06-29 14:40:36 +02:00

10 Commits

7 changed files with 9 additions and 10 deletions

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "src/LuaIRC"]
[submodule "irc"]
path = irc
url = https://github.com/ShadowNinja/LuaIRC.git
url = https://sys4.fr/gitea/mtcontrib/LuaIRC.git

View File

@ -169,10 +169,8 @@ irc.register_bot_command("players", {
for _, player in pairs(players) do
table.insert(names, player:get_player_name())
end
return true, string.format("%d connected player(s): %s",
#players,
table.concat(names, ", ")
)
return true, "Connected players: "
..table.concat(names, ", ")
end
})

View File

@ -31,7 +31,7 @@ minetest.register_on_chat_message(function(name, message)
if nl then
message = message:sub(1, nl - 1)
end
irc.say(irc.playerMessage(name, minetest.strip_colors(message)))
irc.say(irc.playerMessage(name, core.strip_colors(message)))
end)

View File

@ -171,7 +171,7 @@ end
function irc.hooks.notice(user, target, message)
if user and user.nick and target == irc.config.channel then
if user.nick and target == irc.config.channel then
irc.sendLocal("-"..user.nick.."@IRC- "..message)
end
end

View File

@ -224,3 +224,4 @@ function irc.queue(msg)
irc.conn:queue(msg)
end
minetest.log("action", "[irc] loaded.")

2
irc

Submodule irc updated: e49a52ede1...b8d594e651

View File

@ -47,7 +47,7 @@ minetest.register_chatcommand("who", {
out[n] = plname
end
table.sort(out)
return true, n.." player(s) in channel: "..table.concat(out, ", ")
return true, "Players in channel: "..table.concat(out, ", ")
end
})