1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-19 23:03:44 +02:00

Merge branch 'master' into perf_rework

This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-09 11:12:03 +02:00
commit 175138f91e

View File

@ -327,6 +327,9 @@ public class Client : Thread
{
//TODO: Add check for #
/* Append on a trailing `,` */
channelLine ~= ",";
for(ulong i = 1; i < channels.length; i++)
{
string currentChannel = channels[i];
@ -1195,6 +1198,9 @@ public class Client : Thread
client.joinChannel("#birchwood");
// TODO: Add a joinChannels(string[])
client.joinChannel("#birchwood2");
client.joinChannel("#birchwoodLeave1");
client.joinChannel("#birchwoodLeave2");
client.joinChannel("#birchwoodLeave3");
Thread.sleep(dur!("seconds")(2));
client.command(new Message("", "NAMES", ""));
@ -1233,6 +1239,23 @@ public class Client : Thread
*/
client.directMessage("Message to myself", "birchwood");
/**
* Test leaving multiple channels (multi)
*/
Thread.sleep(dur!("seconds")(2));
client.leaveChannel(["#birchwood", "#birchwood2"]);
/**
* Test leaving a single channel (singular)
*/
client.leaveChannel("#birchwoodLeave1");
/**
* Test leaving a single channel (multi)
*/
client.leaveChannel(["#birchwoodLeave2"]);
// TODO: Don't forget to re-enable this when done testing!
Thread.sleep(dur!("seconds")(15));
client.quit();