diff --git a/API-Internet.md b/API-Internet.md index a342c1a..9393946 100644 --- a/API-Internet.md +++ b/API-Internet.md @@ -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,"[^:]+")