1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 09:43:37 +02:00

Code cleanup

This commit is contained in:
Tristan B. Kildaire 2020-09-28 19:46:03 +02:00
parent e30987546b
commit b0f30acb5b

View File

@ -318,20 +318,13 @@ public class DConnection : Thread
bool isPresentInfo = false; bool isPresentInfo = false;
foreach(string channelName; channels) foreach(string channelName; channels)
{ {
// /* Attempt to find the channel */ /**
// DChannel channel = server.getChannelByName(channelName); * Finds the channel, if it exists then it returns it,
// * if it does not exist then it will create it and then
// /* Create the channel if it doesn't exist */ * return it
// if(channel is null) */
// {
// /* TODO: Thread safety for name choice */
// channel = new DChannel(channelName);
//
// server.addChannel(this, channel);
// }
DChannel channel = server.getChannel(this, channelName); DChannel channel = server.getChannel(this, channelName);
/* Join the channel */ /* Join the channel */
isPresentInfo = channel.join(this); isPresentInfo = channel.join(this);
} }