diff options
author | Gary Kramlich <grim@reaperworld.com> | 2023-03-20 21:14:42 -0500 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2023-03-20 21:14:42 -0500 |
commit | a965b83ba6a3a490e54ba69e9f6bf96c80d776e0 (patch) | |
tree | c77460468e21a93b2813c0f9c9acb573c557dcc0 /libpurple/protocols/jabber/presence.c | |
parent | 40001171184e77f257647df9916235249f4073f6 (diff) | |
download | pidgin-a965b83ba6a3a490e54ba69e9f6bf96c80d776e0.tar.gz |
Remove all of the current Mood API
The functionality of the mood api is being moved into PurplePresence via the
soon to be added Emoji and Message properties. As such we have no need for the
existing API which is why we are removing all of it.
Testing Done:
Ran `ninja pidgin-pot all tests` successfully and verified there were no new warnings.
Reviewed at https://reviews.imfreedom.org/r/2366/
Diffstat (limited to 'libpurple/protocols/jabber/presence.c')
-rw-r--r-- | libpurple/protocols/jabber/presence.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libpurple/protocols/jabber/presence.c b/libpurple/protocols/jabber/presence.c index cc75ac5ef1..4baf4f3e16 100644 --- a/libpurple/protocols/jabber/presence.c +++ b/libpurple/protocols/jabber/presence.c @@ -31,7 +31,6 @@ #include "jutil.h" #include "adhoccommands.h" -#include "usermood.h" #include "usertune.h" static GHashTable *presence_handlers = NULL; @@ -169,16 +168,6 @@ jabber_set_status(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, 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_status_type(status)) == PURPLE_STATUS_MOOD) { - const char *mood = - purple_status_get_attr_string(status, PURPLE_MOOD_NAME); - const char *mood_text = - purple_status_get_attr_string(status, PURPLE_MOOD_COMMENT); - jabber_mood_set(js, mood, mood_text); - return; - } - jabber_presence_send(js, FALSE); } |