Merge pull request #1150 from DFHack/luasock-fix

Fix luasocket receive with byte count
develop
Lethosor 2017-08-12 08:51:31 -04:00 committed by GitHub
commit a39672fc15
1 changed files with 1 additions and 1 deletions

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