Skip to content

Commit

Permalink
Merge branch 'master' of github.com:phergie/phergie
Browse files Browse the repository at this point in the history
  • Loading branch information
elazar committed Jul 1, 2012
2 parents 315e30d + 7d02cf4 commit bff3ba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Phergie/Plugin/Ctcp.php
Expand Up @@ -51,6 +51,9 @@ public function onTime()
*/
public function onVersion()
{
if ($this->getEvent()->getArguments()) {
return;
}
$source = $this->getEvent()->getSource();
$msg = 'Phergie ' . Phergie_Bot::VERSION . ' (http://phergie.org)';
$this->doVersion($source, $msg);
Expand Down
6 changes: 3 additions & 3 deletions Phergie/Plugin/FeedTicker.php
Expand Up @@ -133,7 +133,7 @@ public function onLoad()
public function feedCheckingCallback()
{
$now = time();
$idleTime = intval($this->getConfig('FeedTicker.idleTime', 60*60*2));
$idleTime = intval($this->getConfig('FeedTicker.idleTime', 7200)); //7200=60*60*2
$time = $now - $idleTime;
$feeds = $this->plugins->getPlugin('FeedManager')->getFeedsList();
$smartReader = (bool) $this->getConfig('FeedTicker.smartReader', false);
Expand Down Expand Up @@ -196,7 +196,7 @@ public function feedCheckingCallback()
}

// Check if is time to delivery items
$showDelayTime = intval($this->getConfig('FeedTicker.showDelayTime', 60*3));
$showDelayTime = intval($this->getConfig('FeedTicker.showDelayTime', 180)); //180=60*3
if (($this->lastDeliveryTime + $showDelayTime) > time()) {
return;
}
Expand Down Expand Up @@ -240,7 +240,7 @@ public function getFeed($url, $updated=0, $etag='')
if ($lm < $updated) {
return false;
}
} else if ($etag == $header['etag']) {
} else if ( isset($header['etag']) && $etag == $header['etag']) {
return false;
}
} else {
Expand Down

0 comments on commit bff3ba0

Please sign in to comment.