libpurple/protocols/mxit/markup.c

branch
release-2.x.y
changeset 33553
b31098549396
parent 33058
ded93865ef42
child 33557
20e1edc44d99
child 33603
5bf94c596f83
child 33617
554bc9cc52a8
--- a/libpurple/protocols/mxit/markup.c	Mon Dec 10 10:33:46 2012 -0500
+++ b/libpurple/protocols/mxit/markup.c	Tue Dec 18 14:58:49 2012 +0200
@@ -59,7 +59,9 @@
 };
 
 
-#define		MXIT_VIBE_MSG_COLOR		"#9933FF"
+#define		MXIT_VIBE_MSG_COLOR			"#9933FF"
+#define		MXIT_FAREWELL_MSG_COLOR		"#949494"
+
 
 /* vibes */
 static const char*	vibes[] = {
@@ -994,6 +996,12 @@
 					break;
 		}
 	}
+
+	if ( msgflags & CP_MSG_FAREWELL ) {
+		/* this is a farewell message */
+		g_string_prepend( mx->msg, "<font color=\""MXIT_FAREWELL_MSG_COLOR"\"><i>" );
+		g_string_append( mx->msg, "</i></font>" );
+	}
 }
 
 

mercurial