Skip to content

Commit

Permalink
fixed not showing all chats disabled (UsergeTeam#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-Singhal authored Jan 10, 2021
1 parent 9b08fc9 commit 3c5426c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions userge/plugins/tools/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ async def disable_userbot(message: Message):

@userge.on_cmd("listdisabled", about={'header': "List all disabled chats."})
async def view_disabled_chats_(message: Message):
if not Config.DISABLED_CHATS:
await message.edit("**DISABLED_CHATS** not found!", del_in=5)
elif Config.DISABLED_ALL:
if Config.DISABLED_ALL:
# bot will not print this, but dont worry except log channel
await message.edit("All chats are disabled!", del_in=5)
elif not Config.DISABLED_CHATS:
await message.edit("**DISABLED_CHATS** not found!", del_in=5)
else:
out_str = '🚷 **DISABLED_CHATS** 🚷\n\n'
async for chat in DISABLED_CHATS.find():
Expand Down

0 comments on commit 3c5426c

Please sign in to comment.