summaryrefslogtreecommitdiff
path: root/louloulibs
AgeCommit message (Collapse)Author
2016-07-28Fix the timeout test, now that we don't wait 1ms too much everytimelouiz’
2016-07-28Do not add 1ms to the timeout of our pollerlouiz’
Can’t remember why I did this, but that must be a stupid reason. Everything must work even with a timeout of 0.
2016-07-28Always remove all the DNS sockets on an c-ares eventlouiz’
Because c-ares may close one of its socket, even if it’s not the one that has the event. Otherwise we may not know when a socket has been removed from our poller (automatically, when close()ed) and this leads to bugs.
2016-07-27Revert "Don’t use unique_ptr to store dns socket handlers"louiz’
This reverts commit 5328d0806fdc5becb9344b4d4320787a2b7c0712.
2016-07-24Use log_error instead of cerrlouiz’
2016-07-12Bring back DNSSocketHandler's destructorlouiz’
2016-07-12Don’t use unique_ptr to store dns socket handlerslouiz’
2016-07-12Move reload.*pp from louloulibs to srclouiz’
2016-07-12Properly catch and handle database errorslouiz’
Do not use a singleton for the database. fix #3203
2016-07-04Replace all include guards by #pragma oncelouiz’
It’s $CURRENT_YEAR
2016-06-24Properly set the “from” of the ping results to the correct full JIDlouiz’
2016-06-23Fix a bug in cut()louiz’
2016-06-15cut messages at 512 bytes, taking into account the UTF-8 codepointslouiz’
ref #3067
2016-06-15Add get_next_codepoint_sizelouiz’
2016-06-14Refactor, test and improve the way we cut too-long messages for IRClouiz’
2016-06-14Add a missing return bool in Configlouiz’
2016-06-14Clean the Config module, use static things instead of a stupid singletonlouiz’
2016-06-13Show off, with some variadic templates, for the logger modulelouiz’
2016-06-08Add a missing vector includelouiz’
2016-06-08Remove all usage of std::listlouiz’
2016-06-02Check the length of the JID parts when copying into the jidprep bufferlouiz’
We trust the XMPP server, but maybe not enough to not check that
2016-05-13Use “using” instead of typedeflouiz’
2016-05-11Do not use std::endl for each line when saving the conf filelouiz’
2016-05-10Fix build with POLLER=POLLlouiz’
2016-05-04Style fixlouiz’
Move all constructors at the top of classes
2016-04-27Include the Configure ad-hoc command on biboumi's JID for fixed_irc_serverlouiz’
Because a jid like “freenode.example.org” is both the JID for the configured IRC server, and biboumi’s JID. fix #3175
2016-04-22Forward the topic authors, handle the author from 333 messageslouiz’
fix #2
2016-04-22Add a TEMPORARY work-around for botan 1.11.29louiz’
2016-02-24Fix the ordering of poll callbacks, with ppoll tooFlorent Le Coz
2016-02-24Close the epoll fdFlorent Le Coz
2016-02-22log the handshake + stream opening/close in a more consistent wayFlorent Le Coz
2016-02-22Fix the ordering of poll callbacks (recv, connect, send)Florent Le Coz
Because if we have a send event to signal the connection sucess + a recv event to signal something to read on the socket, we need to first finish the connect process before reading the available data. That’s what we do now.
2016-02-10Remove unused xml_unescape() functionFlorent Le Coz
2016-02-10Rename BasicCredentialManagerFlorent Le Coz
2016-01-13Quiet a warningFlorent Le Coz
2016-01-04Support a trusted SHA1 fingerprint to be configured for each IRC serverFlorent Le Coz
2016-01-04Use the configured encoding value when decoding received messagesFlorent Le Coz
2015-12-23A few cleanups, and make a few things more modernFlorent Le Coz
2015-12-23Also store a reference instead of a pointer, in AdhocCommandsHandlerFlorent Le Coz
2015-12-13Make the XMPP server address configurable.Stuart Mumford
fix #3145
2015-12-03Add an ad-hoc command to disconnect a user from one or more IRC serverFlorent Le Coz
fix #3077
2015-12-03JID class provides bare() and full() methodsFlorent Le Coz
2015-12-03Small cleanupFlorent Le Coz
2015-12-03Provide a “var” map in AdhocSession objects, to save values between each ↵Florent Le Coz
step
2015-12-03Do not forget to call freeaddrinfo, fix a memleakFlorent Le Coz
For the getaddrinfo call we added in the previous commit, to convert the IP provided in the conf.
2015-12-01Display a better error when connection failsFlorent Le Coz
The error should not tell “while reading” when we are just connecting.
2015-12-01Add the outgoing_bind optionFlorent Le Coz
Lets the admin choose a local address to bind each outgoing (IRC) socket.
2015-11-30Do not segfault when trying to send TLS data over a not-yet connected socketFlorent Le Coz
2015-11-07Avoid leaking socket filedescriptorsFlorent Le Coz
When trying the various results of getaddrinfo, we forgot to close the socket when one fails, before trying the next one. Also use the destructor to make sure we do not have some other unrelated leak.
2015-11-05Make the CA file configurableFlorent Le Coz