1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 13:43:19 +02:00
Commit Graph

155 Commits

Author SHA1 Message Date
6688d6dfdf Config
- Documented package module

Client

- Documented package module

Protocol

- Documented package module

Birchwood

- Documented package module
2023-03-18 11:29:41 +02:00
cb56a4d9f4 ConnInfo
- Clean up comment
2023-03-18 11:25:39 +02:00
bd16cc145c Unit tests
- Fixed usage of `ErrorType`
2023-03-18 11:24:52 +02:00
47687244af Exceptions
- Commented all of `BirchwoodException`
- Moved `ErrorType` up to the module-level
- Documented `ErrorType` and all of its member enums

Client

- Fixed usage of `ErrorType`

ConnInfo

- Documented `ConnectionInfo`
- Fixed usage of `ErrorType`
2023-03-18 11:24:01 +02:00
9e68d94120 Sender
- Added documentation to the `SenderThread`

Receiver

- Added documentation to the `ReceiveThread`
2023-03-18 11:09:42 +02:00
fc63aaae49 Receiver
- Added missing documentation
- Removed commented-out code block

Sender

- Added missing documentation
- Removed commented-out code block
2023-03-18 11:07:37 +02:00
a1b739e8b7 Merge branch 'params_parsing' 2023-03-17 09:31:17 +02:00
c6953057e8 Client
- Disable testing code for now
2023-03-17 09:29:04 +02:00
91235f7484 ConnInfo
- Documented module

ConnectionInfo

- Documented struct
2023-03-17 09:25:26 +02:00
ac6d9dbc14 ConnInfo
- Added method documentation
2023-03-17 09:24:24 +02:00
d982205b1b Messages
- Documented `getKVPairs()`, `getTrailing()` and `getPairs()`
2023-03-17 09:20:54 +02:00
0e9c042d21 Unit tests
- Cleaned up
2023-03-17 09:18:17 +02:00
3c6ee2bbbb Unit tests
- Added another unit test
2023-03-17 09:11:22 +02:00
0c4382d7ce Client
- Test new parameter parsing
- Noted DLog logging bug where output cannot be seen
2023-03-17 09:10:04 +02:00
d705ad1e66 Messages
- Added `ppPairs` and `getPairs()` which returns a `string[]` of all parameters (excluding trailing)
- Implemented usage of new `splitter(string, ref bool)`
- The `splitter()` function now sets a flag if there is a trailer

Unit tests

- Updated unit test to use new `splitter(string ref bool)`
2023-03-17 09:09:40 +02:00
988b1686d7 Messages
- FIxed assertion in unit test
2023-03-17 08:37:13 +02:00
1af73cb9d3 Messages
- Added unit test for `splitting(string)`
2023-03-17 08:36:09 +02:00
fc9301f632 Message
- Implemented `splitting(string)` which returns a `string[]` of split parameters according to the rfc1459's ENBF
2023-03-17 08:35:23 +02:00
75f3f7b867 Messages
- Slightly improved trailer detection
- Added some TODOs and notes

Client

- Log the key-value parameters and trailer
2023-03-16 18:38:06 +02:00
f930618162 Merge branch 'master' into params_parsing 2023-03-16 18:21:01 +02:00
dafc39274d Constants
- Don't use octal
2023-03-16 18:20:14 +02:00
c0a249a31c Constants
- Don't use octals
2023-03-16 18:19:01 +02:00
f120a566a7 Client
- Added TODO regarding what needs to be done to update the `"PRIVMSG"` sub-handler
2023-03-16 13:58:20 +02:00
8a808cf9f2 Client
- Test out new `getKVPairs()` and `getTrailing()`
2023-03-16 13:53:14 +02:00
0224f4554b Messages
- Added `getTrailing()` which returns the trailing text
- Added `getKVPairs()` which returns the key-value pairs
2023-03-16 13:52:29 +02:00
b34eaf0e4e Messages
- Added work-in-progress `parameterParse()` which attempts to parse parameters and trailing text (if any of both)
- Added `ppTrailing` for any possible trailing text
- Added `ppKVPairs` for any potential key-value pairs
- Call `parameterParse()` on initialization of a new `Message` object
2023-03-16 13:45:56 +02:00
c1bf76df19
Updated IRC compatibility information 2023-03-16 13:03:16 +02:00
49500580c6
Merge pull request #17 from deavmi/rfc2812
Rfc2812
2023-03-16 12:58:08 +02:00
2c25a20ffb Merge branch 'master' into rfc2812 2023-03-16 12:44:34 +02:00
d10ff8e7a2
Merge pull request #14 from deavmi/ping_pong_fix
Fix PING detection
2023-03-16 12:41:45 +02:00
f3b5246a1c Merge branch 'master' into ping_pong_fix 2023-03-16 08:41:13 +02:00
9ff29d177d Merge branch 'master' into rfc2812 2023-03-16 08:39:41 +02:00
9cc40938ee Receiver
- Added documentation for `rq`

Sender

- Added documentation for `sq`
2023-03-16 08:38:47 +02:00
d2acd08a98 Client
- Removed commented-out code
2023-03-16 08:37:04 +02:00
a0acaccdec Merge branch 'master' into rfc2812 2023-03-16 08:35:12 +02:00
93fecfaad5 Client
- Removed now-completed TODO
- Implemented `joinChannel(string[])`

Unit tests

- Use BNET test server
- Added test calls to `joinChannel(string[])`
2023-03-16 08:26:03 +02:00
66c3a02d6e Client
- Added missing documentation for `onDirectMessage`, `onChannelMessage`, `onGenericCommand` and `onCommandReply`
2023-03-16 08:17:56 +02:00
087eb954d1 Client
- Print out `RPL_BOUNCE` when it appears
2023-03-16 08:05:34 +02:00
66cd409234 Package (protocol)
- Make `ReplyType` available
2023-03-15 21:29:07 +02:00
d66bec5fa6 Client
- Switch back to BNET test server
2023-03-15 21:26:07 +02:00
09e8d2e1b7 Merge branch 'master' into rfc2812 2023-03-15 21:19:46 +02:00
57ce756120 Constants
- Added `ERR_NOCHANMODES`
2023-03-15 20:50:03 +02:00
1f7e3a96af Constants
- Segmented into sections based on rfc
- Added a few new constants from RFC2812
- `RPL_BOUNCE` (`005`) is a numeric response to note as it has key-value pairs associated with it
2023-03-15 20:34:36 +02:00
7c8208182f Client
- Added TODOs for comments
2023-03-15 20:24:05 +02:00
672b8fee64 Client
- Added some TODOs for comments
2023-03-15 20:23:30 +02:00
681dfc042c Client
- Added TODO where response code handling needs to go
2023-03-15 20:07:10 +02:00
2a50c8efbb Unit tests
- Switch back to my IPv6-only server for testing
2023-03-15 17:15:25 +02:00
a42d913236 Receiver
- Parse all messages into a `Message` array (`SList`)
- If a PING is found then we put it aside and check if we have one and then reply
- The PING is removed and all normal messages remain and then get EVenty events triggered for them for `IRCEvent`
2023-03-15 17:13:30 +02:00
512eff727b Client
- Use freenode to test with for a little
2023-03-15 16:57:52 +02:00
f0ae335419 Receiver
- Documented a bug with the PING detection (#13)
2023-03-15 16:51:46 +02:00