summaryrefslogtreecommitdiff
path: root/louloulibs/utils
AgeCommit message (Collapse)Author
2017-02-01Only use the C.UTF-8 LANG valuelouiz’
2016-12-08In time.cpp, use the en_US.UTF-8 locale, instead of en_US.utf-8louiz’
(which apparently doesn’t work on freebsd)
2016-12-07Add some missing includeslouiz’
2016-11-01Refactor load_certs()louiz’
2016-10-31Some cleanupslouiz’
2016-10-27Refactor remove_invalid_xml_chars to use correct types directlylouiz’
2016-10-20Very little optimization by using a simpler scope_guard when possiblelouiz’
The version with the vector, that can be disabled etc, is “very” slow, so we use unique_ptr when we don’t need to disable it, and when it only contains one function
2016-10-11Conditionally use strptime if we don’t have std::get_timelouiz’
2016-10-11Parse the timezone myself, instead of using the broken strptimelouiz’
See https://lab.louiz.org/louiz/biboumi/issues/3215 https://github.com/andikleen/glibc/blob/master/time/strptime_l.c#L746-L747 for why strptime() sucks We use std::get_time now, to parse the date and time. And we parse the timezone by hand. fix #3215
2016-10-03Fix parse_datetime by always using a 'z' as the timezonelouiz’
Because some plateform accept Z and z, but some only accept z…
2016-09-28Remove unused code in sha1 modulelouiz’
2016-09-17Fix the parse_datetime by using %Z instead of %zlouiz’
If anybody knows why fedora accepts both, but it only works with %z on debian, please tell me.
2016-08-31Add parse_datetimelouiz’
2016-08-31Fix to_string(time_t) and write a unit test for itlouiz’
2016-08-28Respond to MAM requests on a channel JIDlouiz’
At the moment, result-set-management is not implemented, the whole history (well, at most 1024 messages) is returned.
2016-08-22Move get_first_non_empty to louloulibs/utilslouiz’
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-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-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-14Clean the Config module, use static things instead of a stupid singletonlouiz’
2016-06-08Remove all usage of std::listlouiz’
2016-05-04Style fixlouiz’
Move all constructors at the top of classes
2015-09-18Introduce the configure ad-hoc command on irc serversFlorent Le Coz
Provides two options for now, and they have no effect yet
2015-09-18Also a xdg_data_pathFlorent Le Coz
2015-09-18Create a xdg_path functionFlorent Le Coz
2015-05-28louloulibs is directly included, instead of being a submoduleFlorent Le Coz
Because this is a nightmare to manage
2015-05-27Avoid some potential race conditions by blocking the signals we manageFlorent Le Coz
They are atomically unblocked in the ppoll/epoll_pwait calls, avoiding any race condition on the check of the “stop” or “reload” booleans.
2015-05-13Update to latest louloulibs revision, and add test for hostname validityFlorent Le Coz
fix #2694
2015-05-07Update to latest louloulibsFlorent Le Coz
fix #3042
2015-04-21Properly check for connecting or connected status before reconnectingFlorent Le Coz
Note, in our context, is_connecting() includes the resolving part as well as the actual connection (if we are using c-ares) fix #3048
2015-04-20Update louloulibs submodule to the correct revisionFlorent Le Coz
2015-04-20Decode incoming JIDs local part according to xep 0106Florent Le Coz
This let users send message to nicks such as Q@CServe.quakenet.org fix #3047
2015-03-04Update to latest louloulibs revisionFlorent Le Coz
2015-03-02Update to latest louloulibs revisionFlorent Le Coz
2015-03-02Update louloulibs to last revisionFlorent Le Coz
2015-02-27Only use include_directory() if the directory path is definedFlorent Le Coz
2015-02-27Add louloulibs as a submoduleFlorent Le Coz