Spaces:
Paused
Paused
Captain D. Ezio
commited on
Commit
·
e89a7d7
1
Parent(s):
b3eaa51
Update info.py
Browse files- 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"
|