mirror of
				https://github.com/sys4-fr/server-nalc.git
				synced 2025-10-31 12:35:22 +01:00 
			
		
		
		
	Added IRC as optional dependency of fail
- Failing and baking cookies now send the chat messages through IRC if available
This commit is contained in:
		
							
								
								
									
										1
									
								
								mods/fail/depends.txt
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										1
									
								
								mods/fail/depends.txt
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1 @@ | ||||
| irc? | ||||
| @@ -42,13 +42,17 @@ end | ||||
| data.send_func = function(name, msg) minetest.chat_send_player(name, msg) end | ||||
|  | ||||
| if data.PUB_MSG then | ||||
| 	data.send_func = function (name, msg) minetest.chat_send_all(msg) end | ||||
| 	data.send_func = function (name, msg) | ||||
| 		if irc then | ||||
| 			irc:say(msg) | ||||
| 		end | ||||
| 		minetest.chat_send_all(msg) | ||||
| 	end | ||||
| end | ||||
|  | ||||
| data.is_player_available = minetest.get_player_by_name | ||||
|  | ||||
| if data.STRICT_PLAYER_CHECK == false then | ||||
|  | ||||
| 	data.is_player_available = function (name) | ||||
| 		return (io.open(minetest.get_worldpath().."/players/"..name) ~= nil) | ||||
| 	end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user