1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 05:23:16 +02:00

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

This commit is contained in:
Tristan B. Velloza Kildaire 2022-11-05 16:31:19 +02:00
parent f70e521d36
commit b974da8151

View File

@ -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();
}