TheHamkerCat %!s(int64=5) %!d(string=hai) anos
pai
achega
0e6f549bf3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)