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

236 Commits

Author SHA1 Message Date
5979387e87 Client
- Removed testing code that looped through a separate `db`-like structure
2023-03-25 13:06:06 +02:00
03c887c39a ConnInfo
- Removed TODO for `getDB(string)`
2023-03-25 13:05:35 +02:00
fdcbcfeda4 ConnInfo
- `getDB(string)` will now throw `BirchwoodException` with `ErrorType.DB_KEY_NOT_FOUND` if the key is not found

Exceptions

- Added member `DB_KEY_NOT_FOUND` to `ErrorType` enum
2023-03-25 13:05:04 +02:00
c53fc034d2 Client
- Update the `ConnInfo`'s `db` on `RPL_ISUPPORT`
2023-03-25 13:01:35 +02:00
357deeb5e4 ConnInfo
- Added a `string[string]` key-value pair named `db` to hold the parameters learnt from `RPL_ISUPPORT`s
- Added `updateDB(string, string)` to add an entry to the `db`
- Added `getDB(string)` to fetch a value from the `db` (if it doesn't exist then an empty string `""` is returned)
2023-03-25 13:01:02 +02:00
b3f102276a Merge branch 'master' into ircv3 2023-03-25 12:48:38 +02:00
3c347853e4 Client
- Cleaned up
2023-03-25 12:44:47 +02:00
3846c0b56a Merge branch 'master' into ircv3 2023-03-24 16:05:15 +02:00
680f245b4a Unit tests
- Added cmobined eample that resets background color
2023-03-24 16:02:30 +02:00
70b7b89e18 Unit tests
- Test `setForegroundBackground(SimpleColor, SimpleColor)`
2023-03-24 15:58:15 +02:00
f56c6eb7dc Unit tests
- Tested `setForeground(SimpleColor)`
2023-03-24 15:52:47 +02:00
9cd4b910ac Formatting
- Added a documentation comment to each member of `ControlCode`
2023-03-24 15:44:59 +02:00
89fbd3adf9 Formatting
- Use `cast(string)` instead of any `.dup` or `.idup`
- Removed TODO
- Removed `pragma(inline)`s
2023-03-24 15:43:28 +02:00
37b568c21d - Renamed method 2023-03-19 16:14:23 +02:00
6aa314603c - Documented 2023-03-19 16:14:09 +02:00
2e5ff166a6 God I hate git, added all work I did back now 2023-03-19 16:12:39 +02:00
5c22ebe8a0 Merge branch 'master' into formatting 2023-03-19 16:07:43 +02:00
25dfddba25 d 2023-03-19 16:07:39 +02:00
853358a92f d 2023-03-19 16:07:34 +02:00
2cb66e3a21 Merge branch 'formatting' of github.com:deavmi/birchwood into formatting 2023-03-19 16:06:52 +02:00
2f0d370c0b bruh 2023-03-19 16:06:44 +02:00
9e356289b5 Merge branch 'master' into formatting 2023-03-19 16:03:36 +02:00
0625fd2038 Merge branch 'master' into formatting 2023-03-19 15:51:53 +02:00
dc9a247d54 Merge branch 'master' into ircv3 2023-03-19 15:51:19 +02:00
301cc64cca Exceptions
- Added a TODO
2023-03-19 15:51:10 +02:00
c3ed9fd6ad Merge branch 'master' into formatting 2023-03-19 13:20:57 +02:00
2c71cbcb15 Merge branch 'master' into ircv3 2023-03-19 13:20:28 +02:00
b54f0bacb9 - Upgraded to latest libsnooze version 0.3.3 2023-03-19 13:19:49 +02:00
0296cc333c Formatting
- Cleaned up code style
2023-03-19 12:37:35 +02:00
927d10abff Formatting
- Added some TODOs
- Code formatting
- Added some documentation
2023-03-19 12:34:20 +02:00
9cd5b7da2c Merge branch 'master' into formatting 2023-03-19 12:25:04 +02:00
b2d7250f49 Merge branch 'master' into ircv3 2023-03-19 12:24:49 +02:00
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