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

254 Commits

Author SHA1 Message Date
58d3be3806 Client
- Don't make this member appear in docs (hopefully) - by marking it as `package

Messages

- Don't make this member appear in docs (hopefully) - by marking it as `package
2023-03-19 12:24:11 +02:00
51a04659c5 Exceptions
- Added new `ErrorType` enum member `INVALID_FORMATTING`

Formatting

- All formatting functions will now throw a `BirchwoodException` instead of a `StringException` on invalid formatting parameters
2023-03-19 12:19:32 +02:00
1ca052978b CLient
- Updated unit test to test combining of formatting
2023-03-19 12:13:54 +02:00
033ea850f3 Formatting
- Explicitly make the formatting functions `public`

Client

- Added unit tests for formatting functions
2023-03-19 12:08:44 +02:00
208cfebf49 Formatting
- Added TODO for import `std.string`
-  Added documentation to `SimpleColor` enum
- Added documentation and code-styled `reset_fg_bg()`, `bold(string)`, `italics(string)`, `underline(string)`, `strikethrough(string)` and `monospace(string)`
2023-03-19 11:58:44 +02:00
71d30039da Formatting
- Changed name of enum `simpleColor` to `SimpleColor` to adhere to D naming conventions
2023-03-18 13:05:57 +02:00
4f361f5044 Merge branch 'master' into formatting 2023-03-18 13:04:54 +02:00
9fe4185636 Merge branch 'master' into ircv3 2023-03-18 13:04:38 +02:00
fd1f204f91 README
- Typo fix
2023-03-18 13:04:08 +02:00
3dc8595327 README
- Added credits to supremestdoggo
2023-03-18 13:02:56 +02:00
8fccde71e2 Formatting
- Added documentation for module
2023-03-18 13:00:03 +02:00
267f888615
Merge pull request #7 from supremestdoggo/master
Add IRC formatting codes
2023-03-18 12:53:47 +02:00
8d1fbbdece Merge branch 'master' into ircv3 2023-03-18 12:30:10 +02:00
de35d611f7 Client
- Made the `connInfo` field `package` level
- Made the `connInfo` field `shared` meaning access to teh variable (updating the "slot", a.k.a. what struct is stored there) will use a lock
- Updating anything within the struct will use a lock (besides `addrInfo` after returning from `getAddr()`)
- This ensures we can have runtime updates safely
- Added documentation to the constructor
- Added TODO for the destructor
- Re-added `getConnInfo()`
- This practice is good for cases we want to update the struct, as getting it via a function would return a copy

ConnInfo

- `ConnectionInfo` struct must now be marked as `shared` due to `Client.connInfo` being marked as such
- We cast from `shared Address` to `Address` because I don't think there is a lot of mutable data in this anyways (subject to change)

Sender

- The `SenderThread` will now access the client's connection info via the field name (`connInfo`), rather than getting a copy of the struct and then fetching the fakelag
2023-03-18 12:29:35 +02:00
aa83f1a1bb ConnInfo
- Added `setBulkReadSize(ulong)` to `ConnectionInfo`
2023-03-18 11:50:54 +02:00
2ab86df2c7 Client
- Documented the `sender` field
2023-03-18 11:47:54 +02:00
b19a7a52d6 Client
- Added missing documentation for `Client` type
2023-03-18 11:47:06 +02:00
17c81bd1b0 Client
- Store all learnt key-value pairs into `string[string] attrs` for now
2023-03-18 11:45:38 +02:00
ece8593b60 Merge branch 'master' into ircv3 2023-03-18 11:38:59 +02:00
603e636c2a Client
- Removed stray comment
2023-03-18 11:38:54 +02:00
4b43174c20 Client
- Print the key-value pairs from `RPL_ISUPPORT` out
2023-03-18 11:38:38 +02:00
1a89396ba8 Messages
- Temporarily disabled Dlog `debug_` calls
2023-03-18 11:38:12 +02:00
c6a74d3cee Merge branch 'master' into ircv3 2023-03-18 11:33:24 +02:00
ee3cacc244 Unit test
- Added notes about the fact we should be automating the `NICK` and `USER` commands on connect
2023-03-18 11:31:55 +02:00
25531aa0e3 Dub
- Added `homepage` key to package description
2023-03-18 11:30:31 +02:00
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
supremestdoggo
5c377e0572 Fix build errors 2023-03-17 10:40:18 -04:00
supremestdoggo
a4b75a322d Add simpleColor function overloads 2023-03-17 10:34:56 -04:00
supremestdoggo
622d6e509d
Merge branch 'deavmi:master' into master 2023-03-17 10:20:49 -04:00
e5b35fb8e7 Merge branch 'master' into ircv3 2023-03-17 09:36:25 +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