Skip to content

Commit

Permalink
Call sailway really less
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Mar 3, 2018
1 parent 14d49d3 commit 7c97e3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/daemon-spotter.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,10 @@ function connect_all($hosts) {
$mission_user = $mission['usrname'];
$mission_name = preg_replace('/[\x00-\x1F\x7F-\xFF]/', '',$Common->remove_accents($mission['mistitle']));
if (!isset($globalFilter['sailway']['race']) || (isset($globalFilter['sailway']['race']) && in_array($mission['misnr'],$globalFilter['sailway']['race']))) {
if (isset($sailaway_authcookie) && $sailaway_authcookie != '') $racebuffer = $Common->getData('http://backend.sailaway.world/cgi-bin/sailaway/GetMission.pl?misnr='.$mission['misnr'],'get','','',$sailaway_authcookie);
else $racebuffer = '';
if (isset($sailaway_authcookie) && $sailaway_authcookie != '') {
$racebuffer = $Common->getData('http://backend.sailaway.world/cgi-bin/sailaway/GetMission.pl?misnr='.$mission['misnr'],'get','','',$sailaway_authcookie);
sleep(10);
} else $racebuffer = '';
$bufferm = $Common->getData('http://backend.sailaway.world/cgi-bin/sailaway/GetLeaderboard.pl?misnr='.$mission['misnr']);
} else {
$bufferm = '';
Expand Down

0 comments on commit 7c97e3b

Please sign in to comment.