# HG changeset patch # User andrew.victor@mxit.com # Date 1280306511 0 # Node ID 18a903a3b474022d05940a770f8593e225617f3e # Parent 6d6ac5720853886e9eea8148baa8891c77c4b844 Add the new Moods. diff -r 6d6ac5720853 -r 18a903a3b474 libpurple/protocols/mxit/roster.c --- a/libpurple/protocols/mxit/roster.c Wed Jul 28 08:36:54 2010 +0000 +++ b/libpurple/protocols/mxit/roster.c Wed Jul 28 08:41:51 2010 +0000 @@ -145,6 +145,11 @@ {"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 @@ 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 @@ 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 ) ); diff -r 6d6ac5720853 -r 18a903a3b474 libpurple/protocols/mxit/roster.h --- a/libpurple/protocols/mxit/roster.h Wed Jul 28 08:36:54 2010 +0000 +++ b/libpurple/protocols/mxit/roster.h Wed Jul 28 08:41:51 2010 +0000 @@ -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 */