mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 09:43:37 +02:00
Code cleanup
This commit is contained in:
parent
e30987546b
commit
b0f30acb5b
@ -318,20 +318,13 @@ public class DConnection : Thread
|
||||
bool isPresentInfo = false;
|
||||
foreach(string channelName; channels)
|
||||
{
|
||||
// /* Attempt to find the channel */
|
||||
// DChannel channel = server.getChannelByName(channelName);
|
||||
//
|
||||
// /* Create the channel if it doesn't exist */
|
||||
// if(channel is null)
|
||||
// {
|
||||
// /* TODO: Thread safety for name choice */
|
||||
// channel = new DChannel(channelName);
|
||||
//
|
||||
// server.addChannel(this, channel);
|
||||
// }
|
||||
/**
|
||||
* Finds the channel, if it exists then it returns it,
|
||||
* if it does not exist then it will create it and then
|
||||
* return it
|
||||
*/
|
||||
DChannel channel = server.getChannel(this, channelName);
|
||||
|
||||
|
||||
/* Join the channel */
|
||||
isPresentInfo = channel.join(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user