Skip to content
Snippets Groups Projects
Commit dad3d577 authored by Frederic Aust's avatar Frederic Aust
Browse files

Finally fixed the Enter!

parent 6279771d
Branches
No related tags found
No related merge requests found
...@@ -108,6 +108,9 @@ def handle_action(timestamp, source, groupID, message, attachments): ...@@ -108,6 +108,9 @@ def handle_action(timestamp, source, groupID, message, attachments):
try: try:
message = message[1:].strip() message = message[1:].strip()
msg_splitted = message.split(" ") msg_splitted = message.split(" ")
if len(msg_splitted) == 1:
msg_splitted = message.replace("\n", " ", 1).split(" ")
msgDict["action"] = msg_splitted[0].lower() msgDict["action"] = msg_splitted[0].lower()
msgDict["content"] = " ".join(str(x) for x in msg_splitted[1:]).strip() msgDict["content"] = " ".join(str(x) for x in msg_splitted[1:]).strip()
if len(msgDict["action"]) == 0: if len(msgDict["action"]) == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment