1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 15:22:53 +02:00
- Implememted `sendMessage(Message)`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-15 08:19:07 +02:00
parent 12883f93db
commit 256369abc5

View File

@ -642,6 +642,22 @@ public class Client : Thread
sender.sq(encodedMessage); 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 * Disconnect from the IRC server gracefully
*/ */