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:
|
||||
message = response[3:]
|
||||
parsed_message = ""
|
||||
for word in message:
|
||||
parsed_message = f"{parsed_message} {word}"
|
||||
|
||||
message = parsed_message
|
||||
parsed_message = None
|
||||
|
||||
message = " ".join(message)
|
||||
message = message.strip()
|
||||
message = message[1:]
|
||||
except Exception:
|
||||
|
|
@ -135,11 +129,7 @@ class IRC2BASH:
|
|||
case _:
|
||||
command_list.append(letter)
|
||||
|
||||
command = ""
|
||||
for letter in command_list:
|
||||
command = f"{command}{letter}"
|
||||
|
||||
command_list = None
|
||||
command = "".join(comand_list)
|
||||
|
||||
print(f"{channel}: <{username}> {command}")
|
||||
_thread.start_new_thread(IRC2BASH.run_command, (command,))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue