mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 11:43:22 +02:00
Client
- Implememted `sendMessage(Message)`
This commit is contained in:
parent
12883f93db
commit
256369abc5
@ -641,6 +641,22 @@ public class Client : Thread
|
||||
/* Enqueue the message to the send queue */
|
||||
sender.sq(encodedMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a message to the server by enqueuing it on
|
||||
* the client-side send queue
|
||||
*
|
||||
* Params:
|
||||
* message = the message to send
|
||||
*/
|
||||
private void sendMessage(Message message)
|
||||
{
|
||||
/* Encode the message */
|
||||
ubyte[] encodedMessage = message.encode();
|
||||
|
||||
/* Enqueue the message to the send queue */
|
||||
sender.sq(encodedMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Disconnect from the IRC server gracefully
|
||||
|
Loading…
Reference in New Issue
Block a user