Made clubbans and clubapps error more specific. closes #1605

This commit is contained in:
Master Kwoth 2017-09-23 03:38:17 +02:00
parent 4f49b81dc1
commit 851452f950
2 changed files with 3 additions and 2 deletions

View File

@ -142,7 +142,7 @@ namespace NadekoBot.Modules.Xp
var club = _service.GetClubWithBansAndApplications(Context.User.Id); var club = _service.GetClubWithBansAndApplications(Context.User.Id);
if (club == null) if (club == null)
return ReplyErrorLocalized("club_not_exists"); return ReplyErrorLocalized("club_not_exists_owner");
var bans = club var bans = club
.Bans .Bans
@ -174,7 +174,7 @@ namespace NadekoBot.Modules.Xp
var club = _service.GetClubWithBansAndApplications(Context.User.Id); var club = _service.GetClubWithBansAndApplications(Context.User.Id);
if (club == null) if (club == null)
return ReplyErrorLocalized("club_not_exists"); return ReplyErrorLocalized("club_not_exists_owner");
var apps = club var apps = club
.Applicants .Applicants

View File

@ -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_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_created": "Club {0} successfully created!",
"xp_club_not_exists": "That club doesn't exist.", "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_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_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.", "xp_club_accepted": "Accepted user {0} to the club.",