1
0
forked from tommy/tommy-bot

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

patterns match using % however you escape . using a % (??? WHY)
This commit is contained in:
2024-01-13 03:18:04 -05:00
parent 48d53f9b4d
commit cec36522d1

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