CTFBot.Program.SendMessageF C# (CSharp) Method

SendMessageF() public static method

Route all irc.SendMessage() calls through this to use the queue
public static SendMessageF ( SendType type, string destination, string message, bool IsDroppable, bool IsPriority ) : void
type SendType
destination string
message string
IsDroppable bool
IsPriority bool
return void
        public static void SendMessageF(SendType type, string destination, string message, bool IsDroppable, bool IsPriority)
        {
            QueuedMessage qm = new QueuedMessage();
            qm.type = type;
            qm.message = message;
            qm.destination = destination;
            qm.SentTime = DateTime.Now.Ticks;
            qm.IsDroppable = IsDroppable;

            if (IsPriority)
                lock (priQueue)
                    priQueue.Enqueue(qm);
            else
                lock (fcQueue)
                    fcQueue.Enqueue(qm);

            //logger.Info("Queued item");
        }