Skip to content

Commit

Permalink
add warning about pirate take over
Browse files Browse the repository at this point in the history
  • Loading branch information
bognix committed May 31, 2016
1 parent cd4f679 commit 6ddf0e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ function releaseSandbox(message) {

return sheet.getCurrentUser(authData, message.channel, sandboxName);
})
.then(function (user) {
if (user !== message.user) {
response = ':pirate: take over!!! @' + user + ', ' + message.user + ' is releasing your sandbox!';
.then(function (data) {
if (data.result && data.result !== message.user) {
response = ':pirate: take over!!! <@' + data.result + '>, <@' + message.user + '> is releasing your sandbox!:pirate:';
}

return sheet.releaseSandbox(authorization, message.channel, sandboxName, message.user);
Expand Down

0 comments on commit 6ddf0e3

Please sign in to comment.