Captain D. Ezio commited on
Commit
bbd57f9
·
1 Parent(s): 184520d

Update info.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/info.py +2 -2
Powers/plugins/info.py CHANGED
@@ -277,13 +277,13 @@ async def info_func(c: Gojo, message: Message):
277
 
278
 
279
  status = False
280
- if m.chat.id != m.from_user.id:
281
  try:
282
  if status:= await m.chat.get_member(user):
283
  status = str(status.status.value).capitalize()
284
  except:
285
  pass
286
- if not status:
287
  approved_users = Approve(m.chat.id).list_approved()
288
  if user in approved_users:
289
  status = "Approved"
 
277
 
278
 
279
  status = False
280
+ if m.from_user and (m.chat.id != m.from_user.id):
281
  try:
282
  if status:= await m.chat.get_member(user):
283
  status = str(status.status.value).capitalize()
284
  except:
285
  pass
286
+ if not status or status == "Member":
287
  approved_users = Approve(m.chat.id).list_approved()
288
  if user in approved_users:
289
  status = "Approved"