Ahoy, so I've been trying to implement IRC support for Quakespasm. I'm trying to get it done for QExpo so that if any streamers want to have their twitch chat in game they can. Or if people want to play and shitpost on #TF or whatever. I've been using libircclient and have had some success but have come to an impasse where I have no idea what to do.
I'm wondering if somebody could look over my code and see if I'm missing anything that could be causing my issues.
I'm running a local server to test, which receives a connection from the game, but doesn't seem to keep-alive, it just times out. I have polling code, that just doesn't get called because the connection is never established.
I'm running linux, so I haven't compiled any libircclient libs or objs for windows, however in the base directory of the archive is a libircclient.o for linux. Which can be copied into the quake (source code) directory for compilation under linux.
Here are the lib irc client docs:
http://www.ulduzsoft.com/libircclient/
And here is the github link:
https://github.com/shaoner/libircclient
Most of the code exists in irc.c, with a few other bits and pieces in other files, a quick search for "shamblernaut" in files will bring up the other files that I've modified.
The thing I most need help with at the moment is figuring out why it isn't connecting. There are other things that don't work, but I'm confident I can get those working myself.
the console commands are:
irc_channel (include #)
irc_nick
irc_server
irc_port
irc_password (default set to "")
these are reflected via cvars saved in config.cfg
the above should be set first before connecting with:
irc_connect (connects with the above settings)
irc_join (sort of moot because it isn't connecting anyway)
At the moment all debugging info is printed to the console, so run from a command line.
Here is the source to my modifications:
https://www.dropbox.com/s/fsnv4y4r0oobswe/quakespasm-0.91.0-irc.zip?dl=0
Anyways, if somebody with some C and engine knowledge could have a look, that would be amazing.
Thanks in advance.
-Snaut