Bug 24756 - do something clever with (NORMAL, "/me is the command to send actions")
Summary: do something clever with (NORMAL, "/me is the command to send actions")
Status: RESOLVED WONTFIX
Alias: None
Product: Telepathy
Classification: Unclassified
Component: gabble (show other bugs)
Version: unspecified
Hardware: Other All
: lowest minor
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 07:14 UTC by Simon McVittie
Modified: 2012-11-05 14:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.