callback.lua
This commit is contained in:
commit
db3b43a635
11
.github/workflows/check-release.yml
vendored
Normal file
11
.github/workflows/check-release.yml
vendored
Normal 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
|
@ -2,7 +2,7 @@
|
||||
allow_defined_top = true
|
||||
|
||||
read_globals = {
|
||||
"minetest",
|
||||
"minetest"
|
||||
}
|
||||
|
||||
exclude_files = {
|
||||
|
@ -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
|
||||
====================
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
@ -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
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user