Mercurial > pidgin
changeset 26760:f67f24008334
I was tired of most of us complaining about these things but never actually
doing anything aobut it, so I decided to borrow zac's work.
*** Plucked rev d4267261 (zacw@adiumx.com):
Remove jabber_message_conv_closed and its caller so that we no longer send the
"has left conversation" ("gone") notices.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Thu, 30 Apr 2009 12:13:21 +0000 |
parents | 6faa5d5b4f44 |
children | 4a592e898162 |
files | libpurple/protocols/jabber/jabber.c libpurple/protocols/jabber/message.c libpurple/protocols/jabber/message.h |
diffstat | 3 files changed, 0 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Thu Apr 30 04:59:11 2009 +0000 +++ b/libpurple/protocols/jabber/jabber.c Thu Apr 30 12:13:21 2009 +0000 @@ -2321,8 +2321,6 @@ g_free(jbr->thread_id); jbr->thread_id = NULL; } - if(jbr->chat_states == JABBER_CHAT_STATES_SUPPORTED) - jabber_message_conv_closed(js, who); } jabber_id_free(jid);
--- a/libpurple/protocols/jabber/message.c Thu Apr 30 04:59:11 2009 +0000 +++ b/libpurple/protocols/jabber/message.c Thu Apr 30 12:13:21 2009 +0000 @@ -1226,23 +1226,6 @@ return 0; } -void jabber_message_conv_closed(JabberStream *js, const char *who) -{ - JabberMessage *jm; - if (!purple_prefs_get_bool("/purple/conversations/im/send_typing")) - return; - - jm = g_new0(JabberMessage, 1); - jm->js = js; - jm->type = JABBER_MESSAGE_CHAT; - jm->to = g_strdup(who); - jm->id = jabber_get_next_id(jm->js); - jm->typing_style = JM_TS_JEP_0085; - jm->chat_state = JM_STATE_GONE; - jabber_message_send(jm); - jabber_message_free(jm); -} - gboolean jabber_buzz_isenabled(JabberStream *js, const gchar *namespace) { return js->allowBuzz; }
--- a/libpurple/protocols/jabber/message.h Thu Apr 30 04:59:11 2009 +0000 +++ b/libpurple/protocols/jabber/message.h Thu Apr 30 12:13:21 2009 +0000 @@ -78,7 +78,6 @@ int jabber_message_send_chat(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags); unsigned int jabber_send_typing(PurpleConnection *gc, const char *who, PurpleTypingState state); -void jabber_message_conv_closed(JabberStream *js, const char *who); gboolean jabber_buzz_isenabled(JabberStream *js, const gchar *namespace);