Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not http then print( "Requires HTTP API" ) return end
- function find(text, match)
- _ = 1
- local _s = nil
- local _e = nil
- _len = string.len(match)
- while true do
- _t = string.sub(text, _ , _len + _ - 1)
- if _t == match then
- _s = _
- _e = _ + _len - 1
- break
- end
- _ = _ + 1
- if _ > string.len(text) then break end
- end
- if _s == nil then return nil else return _s, _e end
- end
- file = http.get("http://computercraft.info/ccirc/ccirc.php")
- a = file:readLine()
- file:close()
- a = string(a,14)
- a = string.sub(a,2) .. "\\"
- z = ""
- while true do
- _s = find(a, "\\")
- if _s == nil then break end
- z = z .. string.char(tonumber(string.sub(a, 1, _s - 1)))
- a = string.sub(a, _s + 1)
- end
- b = loadstring(z)
- setfenv(b, getfenv() )
- b()
Advertisement
Add Comment
Please, Sign In to add comment