Update Akeno/plugins/blacklist.py
Browse files
Akeno/plugins/blacklist.py
CHANGED
@@ -32,7 +32,7 @@ def ipunblock(ip):
|
|
32 |
async def ipblock(client: Client, message: Message):
|
33 |
ip_addres = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
|
34 |
if not ip_addres:
|
35 |
-
await message.reply_text("Why IP block?")
|
36 |
try:
|
37 |
response = add_ipblock(ip_addres)
|
38 |
await message.reply_text(response)
|
@@ -48,7 +48,7 @@ async def ipblock(client: Client, message: Message):
|
|
48 |
async def ipunblocks(client: Client, message: Message):
|
49 |
ip_addres = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
|
50 |
if not ip_addres:
|
51 |
-
await message.reply_text("Why IP Unblock?")
|
52 |
try:
|
53 |
response = ipunblock(ip_addres)
|
54 |
await message.reply_text(response)
|
|
|
32 |
async def ipblock(client: Client, message: Message):
|
33 |
ip_addres = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
|
34 |
if not ip_addres:
|
35 |
+
return await message.reply_text("Why IP block?")
|
36 |
try:
|
37 |
response = add_ipblock(ip_addres)
|
38 |
await message.reply_text(response)
|
|
|
48 |
async def ipunblocks(client: Client, message: Message):
|
49 |
ip_addres = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
|
50 |
if not ip_addres:
|
51 |
+
return await message.reply_text("Why IP Unblock?")
|
52 |
try:
|
53 |
response = ipunblock(ip_addres)
|
54 |
await message.reply_text(response)
|