mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
lua binder improvments
This commit is contained in:
@@ -16,11 +16,3 @@ end
|
||||
function string:trim()
|
||||
return self:match('^%s*(.*%S)') or ''
|
||||
end
|
||||
|
||||
function toboolean(str)
|
||||
str = str:trim()
|
||||
if str == '1' or str == 'true' then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
Reference in New Issue
Block a user