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.
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.