From: Harvie Date: Tue, 22 Feb 2011 03:34:50 +0000 (+0100) Subject: Prepared presence for getting status of remote user in future X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=commitdiff_plain;h=e2bf984ef48fca5def8bec1874edb90b3fedd823 Prepared presence for getting status of remote user in future --- diff --git a/answerscripts.c b/answerscripts.c index 3e8b3ca..022a440 100755 --- a/answerscripts.c +++ b/answerscripts.c @@ -62,6 +62,7 @@ int answerscripts_process_message_cb(answerscripts_job *job) { static void received_im_msg_cb(PurpleAccount *account, char *who, char *buffer, PurpleConversation *conv, PurpleMessageFlags flags, void *data) { if (conv == NULL) conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, who); //* A workaround to avoid skipping of the first message as a result on NULL-conv: */ PurpleBuddy *buddy = purple_find_buddy(account, who); + PurplePresence *presence = purple_buddy_get_presence(buddy); //Get message message = purple_markup_strip_html(buffer);