forked from minetest-mods/irc
		
	Compare commits
	
		
			9 Commits
		
	
	
		
			612a94bbf1
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| fc46594dbb | |||
|  | c088ba4e40 | ||
| bb8b755362 | |||
|  | 758e9b6361 | ||
| ee81559532 | |||
|  | 7fbbfd6cdb | ||
|  | cc78f12a4c | ||
| 0f46251d00 | |||
|  | ceb40e2bb3 | 
							
								
								
									
										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/actions) | ||||
|  | ||||
| IRC Mod for Minetest | ||||
| ==================== | ||||
|   | ||||
| @@ -169,8 +169,10 @@ irc.register_bot_command("players", { | ||||
| 		for _, player in pairs(players) do | ||||
| 			table.insert(names, player:get_player_name()) | ||||
| 		end | ||||
| 		return true, "Connected players: " | ||||
| 				..table.concat(names, ", ") | ||||
| 		return true, string.format("%d connected player(s): %s", | ||||
| 			#players, | ||||
| 			table.concat(names, ", ") | ||||
| 		) | ||||
| 	end | ||||
| }) | ||||
|  | ||||
|   | ||||
| @@ -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, core.strip_colors(message))) | ||||
| 	irc.say(irc.playerMessage(name, minetest.strip_colors(message))) | ||||
| end) | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -171,7 +171,7 @@ end | ||||
|  | ||||
|  | ||||
| function irc.hooks.notice(user, target, message) | ||||
| 	if user.nick and target == irc.config.channel then | ||||
| 	if user and user.nick and target == irc.config.channel then | ||||
| 		irc.sendLocal("-"..user.nick.."@IRC- "..message) | ||||
| 	end | ||||
| end | ||||
|   | ||||
| @@ -47,7 +47,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 | ||||
| }) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user