modules/CACommandModGetPostText.py
authorSomeone <someone@somenet.org>
Thu, 27 Jan 2022 11:50:19 +0000 (12:50 +0100)
committerSomeone <someone@somenet.org>
Thu, 27 Jan 2022 11:50:19 +0000 (12:50 +0100)
modules/CACommandModGetPostText.py

index bc0bf6d871f8e1bcbaca4ac026f210dd6edabf18..0c70e7f7c4bb79b67a6a70da9678be2e0a2b10e3 100644 (file)
@@ -19,7 +19,7 @@ class CACommandModGetPostText(AbstractCommand):
     def on_POST(self, request, data):
         self._require_channel_admin(data) # will throw an exception if not. (Dont try-except: Its handled up the stack.)
 
-        msg_text = data['text'].strip()
+        msg_text = data['text'].strip().split(" ", 1)
 
         try:
             splitpath = msg_text[0].strip().strip("/").split("/")