reminder that "." is a wildcard for any and all character

patterns match using % however you escape . using a % (??? WHY)
This commit is contained in:
tommy 2024-01-13 03:18:04 -05:00
parent 48d53f9b4d
commit cec36522d1
No known key found for this signature in database
GPG Key ID: AF3CD89B80478500

View File

@ -27,7 +27,7 @@ Commands:Add('setip',{},'set ip for status',function(CommandData)
return CommandMessage:reply('No IP provided')
end
local ServerIP=ServerIPStr:match("(%d+.%d+.%d+.%d+)")
local ServerIP=ServerIPStr:match("(%d+%.%d+%.%d+%.%d+)")
if not ServerIP then
return CommandMessage:reply('Invalid server IP')
end