From b974da8151152c858513a160527ba96557657ddb Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 5 Nov 2022 16:31:19 +0200 Subject: [PATCH] Fixed bug which would have caused a possible crash? Well somewhere, I am not sure if thread spanwed is default in evwenty, in anyu case, fixed it --- source/birchwood/client.d | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/birchwood/client.d b/source/birchwood/client.d index af0496d..1a15296 100644 --- a/source/birchwood/client.d +++ b/source/birchwood/client.d @@ -370,9 +370,11 @@ public final class Client : Thread if(cmp(command, "PRIVMSG") == 0) { /* Split up into (channel/nick) and (message)*/ - long firstSpaceIdx = indexOf(command, " "); //TODO: validity check; + long firstSpaceIdx = indexOf(params, " "); //TODO: validity check; string chanNick = params[0..firstSpaceIdx]; + logger.log("chanNick: "~chanNick); + /** * TODO: Implement message fetching here and decide whether isChannel message * or private message @@ -900,8 +902,9 @@ public final class Client : Thread // } - Thread.sleep(dur!("seconds")(15)); - client.quit(); + // TODO: Don't forget to re-enable this when done testing! + // Thread.sleep(dur!("seconds")(15)); + // client.quit(); }