]> git.0d.be Git - empathy.git/commitdiff
Strip %senderPrefix% in Adium themes
authorWill Thompson <will.thompson@collabora.co.uk>
Tue, 26 Jun 2012 09:08:51 +0000 (10:08 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 26 Jun 2012 10:59:20 +0000 (12:59 +0200)
%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

index 98df46b79a9de43ee019f56544b9a46e0a461e33..b77d1cf8bc5a779089f2f98c988c2cf47badc43f 100644 (file)
@@ -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