Updated API Internet (markdown)

CokaCola 2014-03-08 12:48:18 -08:00
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,"[^:]+")