Skip to content

Commit

Permalink
Idol Photos will no longer post a photo when capped
Browse files Browse the repository at this point in the history
  • Loading branch information
MujyKun committed Aug 13, 2021
1 parent af923c7 commit 2514f3d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions IreneUtility/util/u_groupmembers.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ async def check_user_limit(self, message_sender, message_channel, no_vote_limit=
:returns: (bool) True if the limit was passed.
"""
user = await self.ex.get_user(message_sender)
user = await self.ex.get_user(message_sender.id)

if not user.idol_calls:
return
Expand All @@ -898,8 +898,7 @@ async def check_user_limit(self, message_sender, message_channel, no_vote_limit=
['bot_id', self.ex.keys.bot_id],
['patreon_link', self.ex.keys.patreon_link]
]))

return True
return True

# noinspection PyPep8
async def request_image_post(self, message, idol, channel):
Expand Down Expand Up @@ -936,6 +935,8 @@ async def request_image_post(self, message, idol, channel):
# this is a successful post.
raise self.ex.exceptions.Pass

return # do not need to go past this point since we raise a pass exception for success.

except self.ex.exceptions.Pass:
# an image should be posted without going through further checks.
pass
Expand Down

0 comments on commit 2514f3d

Please sign in to comment.