[empathy] Strip %senderPrefix% in Adium themes



commit e4f305a86101b8f03a561a2ae4057a1eed386685
Author: Will Thompson <will thompson collabora co uk>
Date:   Tue Jun 26 10:08:51 2012 +0100

    Strip %senderPrefix% in Adium themes
    
    %senderPrefix% is not documented on
    <http://trac.adium.im/wiki/CreatingMessageStyles> but it's used in
    minimal_mod, the theme I use, in the tooltips for each speaker's name.
    Based on <http://hg.adium.im/adium/rev/b586b027de42>, it's supposed to
    be the IRC mode character (@, +, whatever). We don't have that
    information, so just get rid of it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678845

 libempathy-gtk/empathy-theme-adium.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 98df46b..b77d1cf 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -600,6 +600,12 @@ theme_adium_append_html (EmpathyThemeAdium *theme,
 			 * local alias instead.
 			 */
 			replace = name;
+		} else if (theme_adium_match (&cur, "%senderPrefix%")) {
+			/* FIXME: If we supported IRC user mode flags, this
+			 * would be replaced with @ if the user is an op, + if
+			 * the user has voice, etc. as per
+			 * http://hg.adium.im/adium/rev/b586b027de42. But we
+			 * don't, so for now we just strip it. */
 		} else if (theme_adium_match_with_format (&cur, "%textbackgroundcolor{", &format)) {
 			/* FIXME: This keyword is used to represent the
 			 * highlight background color. "X" is the opacity of the



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]