Ejemplo n.º 1
0
        private void banThis(IPAddress iPAddress, int duration, int thread, string reason)
        {
            foreach (IPBan ban in World.IPBans)
            {
                if (ban.IP == iPAddress)
                {
                    if (ban.Duration >= 0)
                    {
                        ban.Duration += duration;
                    }
                    ban.ThreadLevel += thread;
                    ban.Reason       = reason;
                    return;
                }
            }
            IPBan newBan = new IPBan(iPAddress, duration, thread, reason);

            World.IPBans.Add(newBan);
        }
Ejemplo n.º 2
0
 private void banThis(IPAddress iPAddress, int duration, int thread, string reason)
 {
     foreach (IPBan ban in World.IPBans)
     {
         if (ban.IP == iPAddress)
         {
             if (ban.Duration >= 0)
             {
                 ban.Duration += duration;
             }
             ban.ThreadLevel += thread;
             ban.Reason = reason;
             return;
         }
     }
     IPBan newBan = new IPBan(iPAddress, duration, thread, reason);
     World.IPBans.Add(newBan);
 }