Skip to content

Commit

Permalink
Fix team removing logic for teams
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai committed Dec 6, 2014
1 parent c14e607 commit 0083a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/team.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = (robot) ->
msg.send "#{user} already out of the team"
else
user_index = robot.brain.data.teams[team_name].indexOf(user)
robot.brain.data.teams[team_name].splice(user_index)
robot.brain.data.teams[team_name].splice(user_index, 1)
count = teamSize(team_name, msg)
countMessage = ", " + count + " remaining" if count > 0
message = "#{user} removed from #{team_name}"
Expand Down

0 comments on commit 0083a7f

Please sign in to comment.