Commit Graph

56 Commits

Author SHA1 Message Date
Alex D. 6658bd9aa4
BUGFIX: libconfig doesn't manage memory for ints 2020-12-30 20:51:30 +00:00
Alex D. 101b515d59
Ignore unused parameters 2020-12-30 20:51:30 +00:00
Alex D. 0256378633
Add readme 2020-12-30 20:51:30 +00:00
Alex D. 45bccfcaa7
Add options for compiler flags 2020-12-30 19:05:03 +00:00
Alex D. 0ff0a8742b
Add optional timeouts 2020-12-30 18:05:07 +00:00
Alex D. 619ecee0f3
BUG: Resize initially 2020-12-22 17:39:17 +00:00
Alex D. 3849e65431
BUGFIX: NULL out wrong elements 2020-12-22 17:33:21 +00:00
Alex D. 10c5dfb400
Cleanup code and fix a few bugs 2020-12-22 11:47:44 +00:00
Alex D. cb7a0a35d8
Remove connection prefixes 2020-12-21 22:30:55 +00:00
Alex D. 25345574e2
Finish off logging 2020-12-21 21:40:43 +00:00
Alex D. 677403b2f3
WIP: separate logging into other binaries 2020-12-21 15:34:38 +00:00
Alex D. 8b035c5871
WIP: logging part 1 2020-12-20 23:53:56 +00:00
Alex D. d2e9932e01
add channels list and keys 2020-12-17 00:27:30 +00:00
Alex D. 85eaddd2ab
WIP: more config stuff 2020-12-09 02:29:24 +00:00
Alex D. 008afed09f
WIP: reformat code and remove some stuff that needs to be changed 2020-12-09 01:33:36 +00:00
Alex D. fc99d4e88f
WIP: part 2 2020-12-08 22:20:42 +00:00
Alex D. 0da49cab10
WIP: cleanup code 2020-12-08 02:16:12 +00:00
Alex D. 7329529bca
Fix logging and add few IRCv3 features (WIP) 2020-11-02 22:35:37 +01:00
Alex D. 5bcbfe640b
Add reconnection interval support 2020-10-26 21:41:58 +01:00
Alex D. 6cd15183e8
Tweak cmake commands 2020-10-10 12:23:56 +02:00
Alex D. 7bd0d0ed2b
Add temporary skip of parsing global patterns and add irc timestamp fallback in case if not present 2020-10-08 20:26:44 +02:00
Alex D. bb8276a16f
Fix filter code 2020-10-05 23:17:48 +02:00
Alex D. 774951afaf
Improve filtering and add fallback for private messages 2020-10-05 22:43:07 +02:00
Alex D. 056d633992
Reformat code according to new style and cleanup code for log path assembler 2020-10-04 15:16:15 +02:00
Alex D. 366b9a2060
Fix signal handing and log output 2020-10-02 16:19:35 +02:00
Alex D. 07c83b0c5b
Remove extra clang-format 2020-10-02 14:39:09 +02:00
Alex D. a4d1e501eb
Rewrite a big chunk of the code, split the code into functions and clean it up, fix undefined behaviours and more 2020-10-02 14:38:11 +02:00
Alex D. f0bfff775d
Use system paths for includes 2020-09-15 17:12:43 +02:00
Alex D. 6ff144f881
Use runtime linking and use standard variables 2020-09-15 16:56:22 +02:00
Alex D. 3a9bf01282
Remove extra arg and shorten output 2020-09-15 16:18:44 +02:00
Alex D. c0eca28927
Merge intervals into one and improve ping/reconnect logic 2020-09-15 16:06:27 +02:00
Alex D. 32de8270f4
Update commit and add few state updates 2020-09-03 13:45:31 +02:00
Alex 5c23aa6d58
Add timeouts 2020-08-26 14:17:09 +02:00
Alex a0f249f654
Send IRC pings with random INTs 2020-08-26 09:40:51 +02:00
Alex c72fefc38d
Fix potential segfault case and remove .log from the end of log files 2020-08-26 09:29:11 +02:00
Alex 18df38bb2d
Set connection states everywhere, combine arg string, remove few commands and sleep on every loop iteration 2020-08-23 19:55:53 +02:00
Alex cf8391ed77
Lots of fixes, ughhh 2020-08-22 18:34:15 +02:00
Alex 905afcc485
Report connection errors back to main and add more refined filtering, add more connection states to reflect between connection established and acknowledged by the server 2020-08-20 19:51:43 +02:00
Alex 94a11c328e
Help for the options 2020-08-19 15:01:30 +02:00
Alex cf97130aef
Split forked main loop into another function 2020-08-19 14:44:26 +02:00
Alex 90a7bc1169
Lots of code refactoring 2020-08-17 22:13:17 +02:00
Alex e1fdae99e4
Use FIFO pipes for input 2020-08-05 22:16:38 +02:00
Alex c73dbe983a
Remove start from mkdir_bottomup, use category for directory creation and add (linux specific) path limits, change directory instead of using a root directory for paths, move variables around for better readablity, add file logs back 2020-08-02 21:56:48 +02:00
Alex 77635c120b
Rewrite lots of things, reorganize stuff, add reconnect delays and fix most reconnect hangs or bugs 2020-08-01 19:45:14 +02:00
Alex 70439434b4
Fix a bug where first connection would be used and fix some weird code i wrote, add edge case handling 2020-07-30 23:02:55 +02:00
Alex 60fd437b55
Remove commented code and use a temporary strcpy buffer 2020-07-30 22:17:23 +02:00
Alex 35f5f893ce
Make sure values are nulled out 2020-07-29 22:23:13 +02:00
Alex d0cfc5f718
Fix memory leak and use static allocation 2020-07-29 22:11:05 +02:00
Alex 04c876e339
Add logging levels, fix a few bugs, add connection log path, use flush_buffer everywhere and handle partial flushes correctly, fix a memory leak, ping the server (to test if the connection is alive) 2020-07-29 16:49:59 +02:00
Alex 6e3db7c7f3
Update repo, separate files, add inclusion guards where needed 2020-07-25 14:03:18 +02:00