diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:30:50 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:30:50 -0500 |
| commit | c25a35d5a18575b2e0ddd2cc189351492ca8d0cc (patch) | |
| tree | c0176fbb624d78156b31a70bc119f99da260967b | |
| parent | 1cf9cc6e25f16fd6df283d42558a5ea4f1c077b0 (diff) | |
| download | PokeBot-c25a35d5a18575b2e0ddd2cc189351492ca8d0cc.tar.gz PokeBot-c25a35d5a18575b2e0ddd2cc189351492ca8d0cc.tar.bz2 PokeBot-c25a35d5a18575b2e0ddd2cc189351492ca8d0cc.zip | |
quick fix
| -rw-r--r-- | commands/Pokemon/drop.js | 2 |
1 files changed, 1 insertions, 1 deletions
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.'); } |
