pidgin.mxit: f90e7546: Add the new Moods.

andrew.victor at mxit.com andrew.victor at mxit.com
Wed Jul 28 09:56:25 EDT 2010


----------------------------------------------------------------------
Revision: f90e75463e6b71a4c443669769bc0f58d189ac99
Parent:   f64ad61b7333b73652fdb6cd6e7a87b8f9fe2336
Author:   andrew.victor at mxit.com
Date:     07/28/10 04:41:51
Branch:   im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/f90e75463e6b71a4c443669769bc0f58d189ac99

Changelog: 

Add the new Moods.


Changes against parent f64ad61b7333b73652fdb6cd6e7a87b8f9fe2336

  patched  libpurple/protocols/mxit/roster.c
  patched  libpurple/protocols/mxit/roster.h

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/roster.c	a91f779a7ddc34e74fce0aa3c17efcbdfc72b0ab
+++ libpurple/protocols/mxit/roster.c	42d9f52f4a0fad5b0319c7d505ad9ce46d479008
@@ -145,6 +145,11 @@ static PurpleMood mxit_moods[] = {
 	{"hot",			N_("Hot"),			NULL},
 	{"sick",		N_("Sick"),			NULL},
 	{"sleepy",		N_("Sleepy"),		NULL},
+	{"bored",		N_("Bored"),		NULL},
+	{"cold",		N_("Cold"),			NULL},
+	{"confused",	N_("Confused"),		NULL},
+	{"hungry",		N_("Hungry"),		NULL},
+	{"stressed",	N_("Stressed"),		NULL},
 	/* Mark the last record. */
 	{ NULL, NULL, NULL }
 };
@@ -213,6 +218,16 @@ const char* mxit_convert_mood_to_name( s
 				return _( "Sick" );
 		case MXIT_MOOD_SLEEPY :
 				return _( "Sleepy" );
+		case MXIT_MOOD_BORED :
+				return _( "Bored" );
+		case MXIT_MOOD_COLD :
+				return _( "Cold" );
+		case MXIT_MOOD_CONFUSED :
+				return _( "Confused" );
+		case MXIT_MOOD_HUNGRY :
+				return _( "Hungry" );
+		case MXIT_MOOD_STRESSED :
+				return _( "Stressed" );
 		case MXIT_MOOD_NONE :
 		default :
 				return "";
@@ -457,7 +472,7 @@ void mxit_update_buddy_presence( struct 
 	contact->mood = mood;
 
 	/* validate mood */
-	if (( contact->mood < MXIT_MOOD_NONE ) || ( contact->mood > MXIT_MOOD_SLEEPY ))
+	if (( contact->mood < MXIT_MOOD_NONE ) || ( contact->mood > MXIT_MOOD_STRESSED ))
 		contact->mood = MXIT_MOOD_NONE;
 
 	g_strlcpy( contact->customMood, customMood, sizeof( contact->customMood ) );
============================================================
--- libpurple/protocols/mxit/roster.h	096f25f2dff8c252f40fe1772add66541504fd13
+++ libpurple/protocols/mxit/roster.h	8acc53e218f7f29b8f78703290411b5736e2995e
@@ -66,6 +66,11 @@
 #define		MXIT_MOOD_HOT				0x08
 #define		MXIT_MOOD_SICK				0x09
 #define		MXIT_MOOD_SLEEPY			0x0A
+#define		MXIT_MOOD_BORED				0x0B
+#define		MXIT_MOOD_COLD				0x0C
+#define		MXIT_MOOD_CONFUSED			0x0D
+#define		MXIT_MOOD_HUNGRY			0x0E
+#define		MXIT_MOOD_STRESSED			0x0F
 
 
 /* MXit contact flags */


More information about the Commits mailing list