mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-08 23:06:58 -04:00
Updated API Internet (markdown)
parent
9a91b6cd9c
commit
da53f6f6c0
@ -41,9 +41,9 @@ if(con) then
|
||||
linesplt = split(line,"[^:]+")
|
||||
if #linesplt >= 2 and string.find(linesplt[2], "No Ident response") ~= nil then
|
||||
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("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("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("JOIN :" .. channel .. "\r\n")
|
||||
elseif linesplt[1] == "PING" or linesplt[1] == "PING " then
|
||||
print("PING")
|
||||
png = split(line,"[^:]+")
|
||||
|
Loading…
x
Reference in New Issue
Block a user