mirror of
https://github.com/a-bad-dev/irc2bash.git
synced 2026-06-09 00:51:32 +00:00
Use .join() in a few places
This commit is contained in:
parent
74b3b0d0c4
commit
cd7da8ae82
1 changed files with 2 additions and 12 deletions
14
main.py
14
main.py
|
|
@ -88,13 +88,7 @@ class IRC2BASH:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
message = response[3:]
|
message = response[3:]
|
||||||
parsed_message = ""
|
message = " ".join(message)
|
||||||
for word in message:
|
|
||||||
parsed_message = f"{parsed_message} {word}"
|
|
||||||
|
|
||||||
message = parsed_message
|
|
||||||
parsed_message = None
|
|
||||||
|
|
||||||
message = message.strip()
|
message = message.strip()
|
||||||
message = message[1:]
|
message = message[1:]
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
@ -135,11 +129,7 @@ class IRC2BASH:
|
||||||
case _:
|
case _:
|
||||||
command_list.append(letter)
|
command_list.append(letter)
|
||||||
|
|
||||||
command = ""
|
command = "".join(comand_list)
|
||||||
for letter in command_list:
|
|
||||||
command = f"{command}{letter}"
|
|
||||||
|
|
||||||
command_list = None
|
|
||||||
|
|
||||||
print(f"{channel}: <{username}> {command}")
|
print(f"{channel}: <{username}> {command}")
|
||||||
_thread.start_new_thread(IRC2BASH.run_command, (command,))
|
_thread.start_new_thread(IRC2BASH.run_command, (command,))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue