aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands/Pokemon/claim.js2
-rw-r--r--plugins/gyms.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/Pokemon/claim.js b/commands/Pokemon/claim.js
index 00a9188..f3d836e 100644
--- a/commands/Pokemon/claim.js
+++ b/commands/Pokemon/claim.js
@@ -13,7 +13,7 @@ exports.run = async (bot, msg) => {
if (!msg.channel.name.startsWith('gym-')) return msg.reply('Go into one of the gym channels and try again.');
- if (bot.plugins.gyms.isOwned(msg.channel.topic)) {
+ if (!bot.plugins.gyms.isOwned(msg.channel.topic)) {
const team = bot.plugins.gyms.getTeam(msg.member);
if (!team) return msg.reply('You have to join a team before you can claim a gym.');
msg.reply('Alright, you have claimed this gym as yours! Be ready to battle anyone who approaches you');
diff --git a/plugins/gyms.js b/plugins/gyms.js
index 3f1ce29..d4b1afe 100644
--- a/plugins/gyms.js
+++ b/plugins/gyms.js
@@ -30,5 +30,5 @@ exports.getGymString = (bot, member) => {
};
exports.isOwned = (title) => {
- return title == 'Current Owner: *none*';
+ return title != 'Current Owner: *none*';
};