aboutsummaryrefslogtreecommitdiff
path: root/src/zyklonb.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the `src' directoryPřemysl Janouch2014-08-101-1769/+0
| | | | There are not that many files, and aren't going to be.
* Don't forward messages while !irc_readyPřemysl Janouch2014-08-011-12/+21
|
* Fix plugin autoloadPřemysl Janouch2014-08-011-5/+13
| | | | | I was trying to be too smart about holding up IRC messages coming from plugins while the bot is disconnected.
* ZyklonB: fix the `print' plugin commandPřemysl Janouch2014-07-311-1/+1
|
* Fix two Clang static analyzer issuesPřemysl Janouch2014-07-191-1/+1
| | | | Overflowing memory allocations should crash or exit anyway.
* Fix some compiler warningsPřemysl Janouch2014-07-191-4/+4
| | | | | | `-Weverything' seems to have found a few problems. Also enabled clang sanitizers by default.
* Add a LIST_HEADER macroPřemysl Janouch2014-07-181-3/+1
| | | | | | To save us from specifying the `next' and `prev' pointers all the time. It's not perfect, just a tiny bit better.
* Revise usage of print_{error,fatal}()Přemysl Janouch2014-07-161-14/+8
| | | | | | Let's limit print_fatal() to unexpected conditions. Also added exit_fatal() to save a few lines of code.
* Rip out error codesPřemysl Janouch2014-07-161-38/+12
| | | | | | | | | | | | | | | As it turns out, they're rather annoying to maintain, and we don't even need them. They also clutter the code unnecessarily in their current form. If it ever comes to having to have them, let's make another version of error_set(), maybe error_set_with_code(), that makes it possible to also set an integer within `struct error'. The only problem with the above solution is when we aggregate errors from multiple functions (be it by calling one after another, or through nesting of functions that may return an error). But let's care about that when the time comes for it.
* Resolve paths relative to XDG config. pathsPřemysl Janouch2014-07-141-24/+9
| | | | This should make the programs an awful lot less painful to set up.
* Put a prolog at the top of configuration filesPřemysl Janouch2014-07-131-12/+21
| | | | Later I'm going to put in there some more information about the format etc.
* Add a strtoul() wrapperPřemysl Janouch2014-07-131-4/+2
|
* Apparently it's the "realname"Přemysl Janouch2014-07-131-4/+4
|
* Only compile regex's oncePřemysl Janouch2014-07-131-17/+28
|
* WIP: add a stub IRC daemon named `kike'Přemysl Janouch2014-07-121-1605/+68
| | | | | | | | | | | | | | As it is going to share a great lot of functionality with ZyklonB, I have decided to extract the common parts into `common.c' and make the two subprojects include this file. The Single Compile Unit concept has proven valuable (sub-second compile times, dead code warnings, almost no need for function declarations, whole-program optimizations), and the sources aren't that long so far anyway. I am probably going to add CMake support later but so far it's not a priority. This project is meant to be portable and freely relocatable (ie. no hardcoded paths if I can avoid it).
* Initial commitPřemysl Janouch2014-07-051-0/+3320