gefaalde poging om de chat te fixen take 1
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
public string Message { get; }
|
||||
public string Name { get; }
|
||||
public double TimeStamp { get; set;}
|
||||
public bool IsDoctor { get; set; }
|
||||
|
||||
public ChatMessage(string name, string message)
|
||||
public ChatMessage(string name, string message, bool isDoctor)
|
||||
{
|
||||
Name = name;
|
||||
Message = message;
|
||||
TimeStamp = Helper.Now;
|
||||
IsDoctor = isDoctor;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace ErgometerLibrary
|
||||
{
|
||||
Type = CommandType.LOGIN;
|
||||
Session = session;
|
||||
Timestamp = Helper.Now;
|
||||
Timestamp = Helper.Now;//wtf is dit voor pure aids??????????
|
||||
|
||||
DisplayName = name;
|
||||
IsDoctor = doctor;
|
||||
@@ -142,7 +142,7 @@ namespace ErgometerLibrary
|
||||
if (com[1].StartsWith("ses"))
|
||||
session = int.Parse(com[1].Substring(3));
|
||||
else
|
||||
throw new FormatException("Error in NetCommend: " + com[1] + " is not a valid session.");
|
||||
throw new FormatException("Error in NetCommand: " + com[1] + " is not a valid session.");
|
||||
|
||||
string[] args = new string[com.Length-2];
|
||||
for (int i = 2; i < com.Length; i++)
|
||||
|
||||
Reference in New Issue
Block a user