reminder that "." is a wildcard for any and all character
patterns match using % however you escape . using a % (??? WHY)
This commit is contained in:
parent
48d53f9b4d
commit
cec36522d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user