Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
7a8a7d55 by wurstsalat at 2022-12-20T09:29:25+01:00
fix: Commands: Attempt to parse only if message can have a command

Fixes #11341

- - - - -


1 changed file:

- gajim/gtk/message_actions_box.py


Changes:

=====================================
gajim/gtk/message_actions_box.py
=====================================
@@ -509,7 +509,8 @@ def _on_msg_textview_key_press_event(self,
             message = self.msg_textview.get_text()
             if (message.startswith('/') and
                     not message.startswith('//') and
-                    not message.startswith('/me ')):
+                    not message.startswith('/me ') and
+                    len(message) > 1):
                 try:
                     app.commands.parse(self._contact.type_string, message)
                 except CommandFailed:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7a8a7d558125f4bd226b8aff558d324e8837fbbd

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7a8a7d558125f4bd226b8aff558d324e8837fbbd
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to