Commit Graph

49 Commits

Author SHA1 Message Date
Alex D. 623d4af43a
Add own strtok implementation that has defined behaviour and use that for tokenizers 2020-09-01 13:18:07 +02:00
Alex D. 86f6dbe43f
Add tag helpers, timestamp assembler, use system defined paths for tests and add timestamp tests 2020-09-01 11:49:37 +02:00
Alex 5f19f7a4c1
conform even further to rfc2812 and skip multiple whitespaces, fix trailing space bug 2020-08-18 21:20:45 +02:00
Alex 1b46e38952
Add numeric commands to assembler and fix a typo that caused a bug 2020-08-17 19:16:55 +02:00
Alex 5123d20991
Tags may be missing #2 2020-08-14 11:41:08 +02:00
Alex eb175a0f92
Tags may be missing 2020-08-14 11:38:02 +02:00
Alex 57cfa3324a
Fix misleading indent, add brackets 2020-08-14 11:33:26 +02:00
Alex 4b7cd6c994
Fix whitespace being added if no tags are written 2020-08-14 11:32:25 +02:00
Alex 16b6e0dddc
Checking the NULL for something that never will be NULL or how i am dumb 2020-08-02 21:28:56 +02:00
Alex 1e6aa0afdc
Use the de-facto standard for handing RFC2812 ambiguous prefix parsing 2020-08-02 18:38:23 +02:00
Alex 0a508077ea
Fix join and part, the arguments are not trailing 2020-08-01 16:29:39 +02:00
Alex 146a011032
Fix boolean 2020-08-01 16:22:00 +02:00
Alex 0b07acd797
Add trailing to the array and change the boolean to show if the last arg is a trailing one 2020-08-01 01:38:06 +02:00
Alex 0f73ea68d8
Fix eventual overflow 2020-07-29 15:23:55 +02:00
Alex 160c3fddd5
Change build outputs and paths, use cmake's defaults, change some build definitions, remove unistd dep listing (it isn't used), add option summary, instruct for out of tree builds, fix a assembler bug and add ircv3 test for the msg assembler 2020-07-23 15:59:41 +02:00
Alex 0cfdf390c4
Remove extra leftover file 2020-07-22 19:00:25 +02:00
Alex edd9790cdf
Split files better 2020-07-22 18:57:59 +02:00
Alex 1f136a8d54
Add safety nets for sizes, reorder stuff, add overflow tests and message assembler tests 2020-07-20 23:40:35 +02:00
Alex 53e5e6b883
Add missing license headers 2020-07-17 15:49:59 +02:00
Alex 08b6b0f187
Add validators and name command enum 2020-07-17 13:47:24 +02:00
Alex 2c543d6d03
Replace comprasions with \0 with boolean ones 2020-07-15 14:44:08 +02:00
Alex b4d13e2f50
Remove IRC_User from arguments, that should be set separately 2020-07-14 18:10:25 +02:00
Alex d18848a8af
Casts not required anymore 2020-07-12 19:51:36 +02:00
Alex ba7b46160d
Remove constant qualifiers to allow more free usage, add few missing commands and tokenizers 2020-07-12 16:32:54 +02:00
Alex 27986560b9
Add definition and add new flags to readme, only build tests that are supported 2020-07-11 23:52:50 +02:00
Alex bd5ab8cc03
Move IRCv3 separately, shorten one bit of the tokenizer 2020-07-11 23:35:36 +02:00
Alex 74e13c4724
Sort commands alphabetically, add few missing IRCv3 commands 2020-07-11 21:39:12 +02:00
Alex 91d4ac1250
Split tests, remove present IRC_Tag element, shorten stuff 2020-07-10 18:02:23 +02:00
Alex 23b66bf33d
Rollback trailing change with a bugfix, add test for non-delimited trailing 2020-07-10 13:44:58 +02:00
Alex 5869197ce7
Add cmake tests, fix a bug with parser expecting at least 1 arg, shorten code, add boolean for user assembly 2020-07-09 22:37:29 +02:00
Alex eb8263e0f5
Uniform function namespace, add includes where needed, add IRC_Tags struct, shorten msg tokenizer, return assembled lenghts 2020-07-07 23:17:28 +02:00
Alex 96fce4fe49
Arguments are not written to, so they should be constants 2020-07-06 23:22:55 +02:00
Alex cbe6971bd5
Fix local variable and trailing returning early when missing 2020-07-06 22:57:21 +02:00
Alex 8e1b99a161
Add readme, remove test code 2020-07-05 13:10:50 +02:00
Alex ce93209ab5
Last few tweaks 2020-07-05 12:48:24 +02:00
Alex 2c25e69ce0
Build shared object and separate stuff into their specific headers, add conditional helpers building 2020-07-04 17:43:30 +02:00
Alex d998c1221a
Add missing commands and finish the functions 2020-07-04 12:29:08 +02:00
Alex 373c6476d1
Set const defaults for pointers, add lots of helpers and conditional inclusion, add forgottten SERVICE command, fix a few bugs, add reserved argument, change namespace for helpers 2020-07-03 22:41:52 +02:00
Alex 28c26b2640
Add macros for descriptive errors, fix a few crash candidates and return more specific errors 2020-07-02 18:32:25 +02:00
Alex 313dba4e0f
Add mode bits and some helper functions, rename some functions, fix a few bugs, separate tag functions 2020-07-01 21:52:45 +02:00
Alex 2fbcadfaf3
Remove tokspace, improve logic and fix some bugs 2020-06-30 23:39:56 +02:00
Alex b14a8a64fd
More uniform returns and separating things into functions, few bugfixes 2020-06-28 17:19:38 +02:00
Alex 9a40c85d28
Fix a few bugs and add source message assembly 2020-06-27 21:07:59 +02:00
Alex 93d139b18f
Move tag assembly and parsing to a separate function 2020-06-27 15:30:04 +02:00
Alex a542140c46
Add tags to the assembler 2020-06-27 14:30:15 +02:00
Alex bc12e90ec8
Support a unlimited amount of spaces like RFC1459 says we should 2020-06-27 13:33:35 +02:00
Alex b7a12816e8
Finish server message parser and some work on the client message assembler, change few types and make some public as well 2020-06-25 21:06:53 +02:00
Alex 17821f54be
Add IRCv3 tags parsing, fix parsing 2020-06-22 18:59:23 +02:00
Alex 8a3a4c9912
Initial commit 2020-06-22 18:58:10 +02:00