cpw.rekkanoryo.icqxstatus: f14dddd0: jabber: Actually send a mood update when...
malu at pidgin.im
malu at pidgin.im
Wed Feb 10 16:02:20 EST 2010
-----------------------------------------------------------------
Revision: f14dddd03f189029f2313c234b5e9dc9964b8fa8
Ancestor: 88e861487c0bb038a99ebb6d7675ae45f749e799
Author: malu at pidgin.im
Date: 2010-02-10T20:53:18
Branch: im.pidgin.cpw.rekkanoryo.icqxstatus
URL: http://d.pidgin.im/viewmtn/revision/info/f14dddd03f189029f2313c234b5e9dc9964b8fa8
Modified files:
libpurple/protocols/jabber/presence.c
ChangeLog:
jabber: Actually send a mood update when setting a mood status (using the generic mood selector).
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/presence.c 5938cd894a39d409c2970bace614ced31a802cdc
+++ libpurple/protocols/jabber/presence.c d974bb5ed5c620f396caf14f476992a0faf73111
@@ -40,6 +40,7 @@
#include "jutil.h"
#include "adhoccommands.h"
+#include "usermood.h"
#include "usertune.h"
@@ -128,6 +129,15 @@ void jabber_set_status(PurpleAccount *ac
gc = purple_account_get_connection(account);
js = purple_connection_get_protocol_data(gc);
+
+ /* it's a mood update */
+ if (purple_status_type_get_primitive(purple_status_get_type(status)) == PURPLE_STATUS_MOOD) {
+ const char *mood =
+ purple_status_get_attr_string(status, PURPLE_MOOD_NAME);
+ jabber_mood_set(js, mood, NULL);
+ return;
+ }
+
jabber_presence_send(js, FALSE);
}
More information about the Commits
mailing list