allow domain names as ip input
This commit is contained in:
parent
cec36522d1
commit
3d9c955718
@ -27,7 +27,7 @@ Commands:Add('setip',{},'set ip for status',function(CommandData)
|
|||||||
return CommandMessage:reply('No IP provided')
|
return CommandMessage:reply('No IP provided')
|
||||||
end
|
end
|
||||||
|
|
||||||
local ServerIP=ServerIPStr:match("(%d+%.%d+%.%d+%.%d+)")
|
local ServerIP=ServerIPStr:match("(%d+%.%d+%.%d+%.%d+)") or ServerIPStr:match("(%w*%.?%w+%.%w+)")
|
||||||
if not ServerIP then
|
if not ServerIP then
|
||||||
return CommandMessage:reply('Invalid server IP')
|
return CommandMessage:reply('Invalid server IP')
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user