as always, my eyes are bleeding, instead of my normal rage ill try to be constructive on the way too common failures in peoples code
no tabbing 3:
rednet.open("top")
you should really auto detect a modem, and print an error if the computer doesnt have one
print("What is your name?")
local name = read()
whoops, accidentally pressed enter twice when running the program, now i have no name
rednet.broadcast("$CCU-CHAT * "..name.." has joined the chat!")
your broadcasting, use channels instead (my channels are 13<program number>)
os.queueEvent("rednet_message",0,"$CCU-CHAT * "..name.." has joined the chat!",0)
why not just insert it into the chat table?
local _, msg = rednet.receive()
local rMsg = msg:match("^%$CCU%-CHAT(.+)")
dont localize things within a loop, just dont
print("--------------------------------------------------")
write("<" .. name .. "> ")
why is this after a while true do end? WHY?
if sendMsg == "/exit" then
term.clear()
error()
end
needs to tell the chat that you left
might add some more later
also, i already made a real IRC client i used
kilobytes peripherals
dont want to release it because its way to powerful ;_;
if im breaking (im not) the license, i would love to hear from your lawyer