Fix luasocket receive with byte count

Did not correctly detect when you typed in a number instead of pattern.
develop
Warmist 2017-08-12 15:42:56 +03:00 committed by GitHub
parent 9d4c7af11c
commit 620cfcc8bd
1 changed files with 1 additions and 1 deletions

@ -47,7 +47,7 @@ function client:receive( pattern )
local pattern=pattern or "*l" local pattern=pattern or "*l"
local bytes=-1 local bytes=-1
if type(pattern)== number then if type(pattern)== 'number' then
bytes=pattern bytes=pattern
end end