aboutsummaryrefslogtreecommitdiff
path: root/commands/Pokemon/drop.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-24 21:36:52 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-24 21:36:52 -0500
commit18470739063d349687eec5c5bd1b58c263fad8e5 (patch)
tree616518220a7f1733e46c0bf45d81d3f6a1cc756f /commands/Pokemon/drop.js
parenta0f5f94312a1e1e0d8bda7a9b36b3d952f525227 (diff)
downloadPokeBot-18470739063d349687eec5c5bd1b58c263fad8e5.tar.gz
PokeBot-18470739063d349687eec5c5bd1b58c263fad8e5.tar.bz2
PokeBot-18470739063d349687eec5c5bd1b58c263fad8e5.zip
more fixes
Diffstat (limited to 'commands/Pokemon/drop.js')
-rw-r--r--commands/Pokemon/drop.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/Pokemon/drop.js b/commands/Pokemon/drop.js
index 5ab88d5..25266f4 100644
--- a/commands/Pokemon/drop.js
+++ b/commands/Pokemon/drop.js
@@ -4,7 +4,7 @@ exports.run = async (bot, msg) => {
msg.reply('There is no owner for this gym. Claim it now with p:claim!');
}
else {
- const owner = msg.channel.topic.slice(15).substring(0, 19);
+ const owner = msg.channel.topic.slice(15).substring(0, 18);
if (msg.author.id != owner) {
return msg.reply('You are not the owner of this gym.');
}