From c25a35d5a18575b2e0ddd2cc189351492ca8d0cc Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 21:30:50 -0500 Subject: quick fix --- commands/Pokemon/drop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/Pokemon/drop.js b/commands/Pokemon/drop.js index 98adc54..fd3bc2d 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(msg.author.tag.length + 1); + const owner = msg.channel.topic.slice(15).substring(msg.author.tag.length - 1); if (msg.author.id != owner) { return msg.reply('You are not the owner of this gym.'); } -- cgit v1.2.3