im writing an irc bot in c++ on linux mint, and its not connecting right for some reason. anyways, heres the link: http://pastebin.com/mHrn8iLQ . it was connecting to quakenet before i added the functions, but now it just says connecting... and then quits.
(this->Status != sf::Socket::Done) ? false : true;
This line makes me dizzy O_O
Using the ternary operator is redundant, you could just return this->Status == sf::Socket::Done to the same effect.
Does the socket connect asynchronously? I ask because you may need to wait for the connection to connect instead of checking once immediately after.
that was the issue. i made it nonblocking and forgot. new problem, when i tried to print what was in the buffer (which contains the responses from quakenet) its printing nonsense
Wow, that is a different nonsense than what I was expecting. When I did my bot I never had that problem. My problem was that I was getting the user list for the channel (can't remember if it was before or after) every message.