public int ChatCheck()
{
int currentblock = CheckSpamBlock();
if (currentblock > 0) return currentblock;
if (Program.CurrentTime.Subtract(LastChat).TotalSeconds <= ChatDelay)
{
ChatBlocked = Program.CurrentTime.AddSeconds(10);
return 10;
}
else
{
LastChat = Program.CurrentTime;
return -1;
}
}