callback.lua

master
flux 2020-08-20 19:25:28 +00:00
commit db3b43a635
5 changed files with 15 additions and 3 deletions

11
.github/workflows/check-release.yml vendored Normal file
View File

@ -0,0 +1,11 @@
on: [push, pull_request]
name: Check & Release
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: https://raw.githubusercontent.com/minetest-mods/irc/master/.luacheckrc

View File

@ -2,7 +2,7 @@
allow_defined_top = true
read_globals = {
"minetest",
"minetest"
}
exclude_files = {

View File

@ -1,3 +1,4 @@
[![](https://github.com/minetest-mods/irc/workflows/Check%20&%20Release/badge.svg)](https://github.com/minetest-mods/irc/actions)
IRC Mod for Minetest
====================

View File

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

View File

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