Bug 24756

Summary: do something clever with (NORMAL, "/me is the command to send actions")
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: gabbleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED WONTFIX QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: minor    
Priority: lowest    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Simon McVittie 2009-10-27 07:14:56 UTC
"/say" is unimplementable in XMPP, because there's no way to escape /me at the beginning of a message - Gabble sends <body>/me is used to send actions</> and there's no way for the recipient to tell that /me was meant to be literal text.

The long-term solution is to get round to writing a XEP for /me, with something like:

(ACTION, "does stuff") -> <body action="true">/me does stuff</>
(NORMAL, "/me is the command to send actions") -> <body action="false">/me is the command to send actions</>
(NORMAL, "lalala") -> <body>lalala</>

One possible short-term hack would be to prepend a zero-width space to the message text for non-ACTION messages that start with "/me "...
Comment 1 Will Thompson 2011-10-03 04:31:30 UTC
There already is a XEP for /me: <http://xmpp.org/extensions/xep-0245.html>. It does not say anything about this.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.