Browse Source

Send failed tracker updates to bot debug channel

spaghetti 7 years ago
parent
commit
1013585f80
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      classes/tracker.class.php

+ 1
- 1
classes/tracker.class.php View File

30
 
30
 
31
     $Err = false;
31
     $Err = false;
32
     if (self::send_request($Get, $MaxAttempts, $Err) === false) {
32
     if (self::send_request($Get, $MaxAttempts, $Err) === false) {
33
-      send_irc("PRIVMSG #tracker :$MaxAttempts $Err $Get");
33
+      send_irc("PRIVMSG " . BOT_DEBUG_CHAN . " :$MaxAttempts $Err $Get");
34
       if (G::$Cache->get_value('ocelot_error_reported') === false) {
34
       if (G::$Cache->get_value('ocelot_error_reported') === false) {
35
         send_irc('PRIVMSG ' . ADMIN_CHAN . " :Failed to update ocelot: $Err : $Get");
35
         send_irc('PRIVMSG ' . ADMIN_CHAN . " :Failed to update ocelot: $Err : $Get");
36
         G::$Cache->cache_value('ocelot_error_reported', true, 3600);
36
         G::$Cache->cache_value('ocelot_error_reported', true, 3600);

Loading…
Cancel
Save