mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 09:43:37 +02:00
Fixed toString
This commit is contained in:
parent
41b84fa2a1
commit
e2b0ec0846
@ -61,7 +61,17 @@ public class DChannel
|
|||||||
|
|
||||||
public override string toString()
|
public override string toString()
|
||||||
{
|
{
|
||||||
return "DChannel [Name: "~name~", Members: "~to!(string)(members)~"]";
|
string toStr;
|
||||||
|
|
||||||
|
/* Lock the members list */
|
||||||
|
memberLock.lock();
|
||||||
|
|
||||||
|
toStr = "DChannel [Name: "~name~", Members: "~to!(string)(members)~"]";
|
||||||
|
|
||||||
|
/* Unlock the members list */
|
||||||
|
memberLock.unlock();
|
||||||
|
|
||||||
|
return toStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -199,6 +199,13 @@ public class DConnection : Thread
|
|||||||
/* Join the channel */
|
/* Join the channel */
|
||||||
channel.join(this);
|
channel.join(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: Do reply */
|
||||||
|
/* Encode the reply */
|
||||||
|
byte[] reply = [true];
|
||||||
|
|
||||||
|
/* TODO: Implement me, use return value */
|
||||||
|
writeSocket(tag, reply);
|
||||||
}
|
}
|
||||||
/* TODO: Handle this case */
|
/* TODO: Handle this case */
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user