This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
libraryaddict's profile picture

rednet.send() is broadcasting

Started by libraryaddict, 10 May 2012 - 06:41 AM
libraryaddict #1
Posted 10 May 2012 - 08:41 AM
I'm working on my own custom chat program atm.
Its going very well atm!

But when I loaded up another computer to check if there was anything broadcasted..
I found out there was..
This is the offending line.
rednet.send(Server, tag(os.clock()..os.getComputerID())..tag("LibChatServer")..Person..": "..ChatInput)

Server is 11
I checked and the server that should only receive is 11.
The computer that received it is ID 1 and ID 2.
I do not know why its being broadcasted.
There is no "rednet.broadcast" in my script but for the start up.
And that can not be the offending line.

I havn't touched the rednet API file.


Edit!
I think I was trying to use my table as a variable..
Wondered why I said Host when I said "Server" was the one.
BigSHinyToys #2
Posted 10 May 2012 - 06:04 PM
rednet.send will broadcast if no ID is specified make shore the ID is correct and that the var that holds it is not nil
I have no idea why it does this thought.