mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-11 16:28:12 -04:00
Updated API Internet (markdown)
parent
9a91b6cd9c
commit
da53f6f6c0
@ -41,9 +41,9 @@ if(con) then
|
|||||||
linesplt = split(line,"[^:]+")
|
linesplt = split(line,"[^:]+")
|
||||||
if #linesplt >= 2 and string.find(linesplt[2], "No Ident response") ~= nil then
|
if #linesplt >= 2 and string.find(linesplt[2], "No Ident response") ~= nil then
|
||||||
print("JOIN")
|
print("JOIN")
|
||||||
con:write("USER " + nickname +" 0 * :" + nickname + "\r\n") --con:write(msg) is used to send messages, con:read() will read a line
|
con:write("USER " .. nickname .. " 0 * :" .. nickname .. "\r\n") --con:write(msg) is used to send messages, con:read() will read a line
|
||||||
con:write("NICK " + nickname + "\r\n") --for IRC, remember to append the \r\n on the end of all messages
|
con:write("NICK " .. nickname .. "\r\n") --for IRC, remember to append the \r\n on the end of all messages
|
||||||
con:write("JOIN :" + channel +"\r\n")
|
con:write("JOIN :" .. channel .. "\r\n")
|
||||||
elseif linesplt[1] == "PING" or linesplt[1] == "PING " then
|
elseif linesplt[1] == "PING" or linesplt[1] == "PING " then
|
||||||
print("PING")
|
print("PING")
|
||||||
png = split(line,"[^:]+")
|
png = split(line,"[^:]+")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user