TheHamkerCat 5 năm trước cách đây
mục cha
commit
0e6f549bf3
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      wbb/modules/greetings.py

+ 1 - 1
wbb/modules/greetings.py

@@ -168,7 +168,7 @@ async def captcha_state(_, message):
     if "can_restrict_members" not in permissions:
         await message.reply_text("You don't have enough permissions.")
         return
-    state = message.text.split(None, 1).strip()
+    state = message.text.split(None, 1)[1].strip()
     state = state.lower()
     if state == "on":
         await captcha_on(chat_id)