Beispiel #1
0
 public XDCCTimer(Random random, XDCC xdcc)
 {
     _random = random;
     _xdcc = xdcc;
     _secondsPassed = 0;
     _timer = new Timer(60000);
     _timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);
     _timer.Enabled = true;
 }
Beispiel #2
0
 private void SetupXDCC()
 {
     _xdcc = new XDCC(this);
     parser.AddTrigger("!announce", _xdcc);
     parser.AddPMResponse("XDCC", _xdcc);
     parser.AddPMResponse("xdcc", _xdcc);
     parser.AddTrigger("!list", _xdcc);
 }