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

212 Commits

Author SHA1 Message Date
6bdf6b4401 - Removed unused method ask()
- Removed unused public fields
- Quit message field been added to ConnectionInfo struct
2022-11-05 12:11:41 +02:00
441fd20302 - Removed testing code from processMessage(ubyte[])
- Implemented encode()
2022-11-05 12:10:51 +02:00
15d2fa2deb - Fixed a bug whereby an unsupported response code would cause a crash in the event handler
- Added a default response type (in case an unspported one comes in)
2022-11-03 17:05:27 +02:00
e2ba0bdb27 Client
- Moved the processing of command replies out or client.d and placed inside of messages.d
2022-11-02 18:55:30 +02:00
5f1d1b01fa Added following functionality:
- command(Message) - Let the user isssue a generic command
- joinChannel(string) - join the given channel
- When a numeric reply is received a Reply struct is now created containing a boolean indicating if there is an error, the ReplyType (as per the RFC) and the "params" (as a string), this is done via overriding the `onCommandReply(Reply)` method
- Added onGenericCommand(Message) - for when it doesn't have a special handler and is not a numeric reply (command response)
- Added special handler for private messages and channel messages (not used yet)
- WIP: PrivMesg handling

New types:

- Reply - response struct type
- ReplyType - the numeric response number
- Renamed Message fields
- Moved encode() and decode() into Message as static methods
2022-11-02 15:54:46 +02:00
a4b2862e81 New test shows the server name here could be anything so we have a working basic prototype (v0.0.1 onwards) 2022-11-01 14:08:04 +02:00
95366e941a Cleaned up 2022-11-01 13:58:42 +02:00
cbe41bff80 Eventy integration
- Fully integrated eventy
- PongEvent and IRCEvent along with respective GenericSignal and PingSignal handlers added
- Moved parsing of messages into Message class

Debugging

- Added dlog which always logs (for now, we should add a debug clause that enables it)
2022-11-01 13:41:39 +02:00
ce8dbd7f5e - Implemented Message type to hold messages
- Create IRCEvent type
- Print out information for handling of IRCEvent in the signal handler registered with Eventy
- Finished initial message parser (splits into `from`, `command` and `params`)
2022-10-31 19:24:10 +02:00
e4bb38c766 Implemented proof-of-concept eventy integration with a default event handler 2022-10-30 17:29:40 +02:00
6f20ef09fa Added initial working code 2022-10-30 16:59:50 +02:00
6c98959492 Initial commit 2022-10-29 18:04:00 +02:00