From 851452f950d92887a2cc59598fb208ea91680afd Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sat, 23 Sep 2017 03:38:17 +0200 Subject: [PATCH] Made clubbans and clubapps error more specific. closes #1605 --- src/NadekoBot/Modules/Xp/Club.cs | 4 ++-- src/NadekoBot/_strings/ResponseStrings.en-US.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Xp/Club.cs b/src/NadekoBot/Modules/Xp/Club.cs index 6ef7b5b5..e62b458a 100644 --- a/src/NadekoBot/Modules/Xp/Club.cs +++ b/src/NadekoBot/Modules/Xp/Club.cs @@ -142,7 +142,7 @@ namespace NadekoBot.Modules.Xp var club = _service.GetClubWithBansAndApplications(Context.User.Id); if (club == null) - return ReplyErrorLocalized("club_not_exists"); + return ReplyErrorLocalized("club_not_exists_owner"); var bans = club .Bans @@ -174,7 +174,7 @@ namespace NadekoBot.Modules.Xp var club = _service.GetClubWithBansAndApplications(Context.User.Id); if (club == null) - return ReplyErrorLocalized("club_not_exists"); + return ReplyErrorLocalized("club_not_exists_owner"); var apps = club .Applicants diff --git a/src/NadekoBot/_strings/ResponseStrings.en-US.json b/src/NadekoBot/_strings/ResponseStrings.en-US.json index fe0a5ef3..081dc5c9 100644 --- a/src/NadekoBot/_strings/ResponseStrings.en-US.json +++ b/src/NadekoBot/_strings/ResponseStrings.en-US.json @@ -847,6 +847,7 @@ "xp_club_create_error": "Failed creating the club. Make sure you're above level 5 and not a member of a club already.", "xp_club_created": "Club {0} successfully created!", "xp_club_not_exists": "That club doesn't exist.", + "xp_club_not_exists_owner": "You are not the owner or the admin of the club.", "xp_club_applied": "You've applied for membership in {0} club.", "xp_club_apply_error": "Error applying. You are either already a member of the club, or you don't meet the minimum level requirement, or you've been banned from this one.", "xp_club_accepted": "Accepted user {0} to the club.",