Skip to content

Commit

Permalink
Fixes for me being dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Aug 7, 2016
1 parent 1d30c6d commit 9536ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hosting.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ exports.chooseChannel = function(team, channel, manualHostLength, preferredGame)

async.waterfall([
function(callback) {
if ((!globalVars.isUsingManualChannelList[team] && globalVars.teamLastCheck[team] < moment().unix() - globalVars.teamRecheckLength) || !globalVars.teamChannels[team]) {
if (!globalVars.teamChannels[team] && !globalVars.isUsingManualChannelList[team] && globalVars.teamLastCheck[team] < moment().unix() - globalVars.teamRecheckLength) {
// Used to check if the team members have changed or not since the last host (and 1+ hour has passed since the last check).
recheckTeamMembers(team, function() {callback(null);});
}
Expand Down Expand Up @@ -327,7 +327,7 @@ function checkIfChannelFullyHosted(team, channel, chosen, hostEvent, noticeEvent

// Gets the online channels for the specific team.
function getOnlineChannels(team, callback) {
if (!globalVars.teamChannels) {
if (!globalVars.teamChannels[team]) {
twitchAPI.getTeamLiveChannels(team, function(error, errorType, response) {
var onlineChannels = [];

Expand Down

0 comments on commit 9536ebb

Please sign in to comment.