X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=answerscripts.c;h=022a44024e8f88eb00e3796fc6c1ead2ca3867fc;hb=e2bf984ef48fca5def8bec1874edb90b3fedd823;hp=3e8b3ca45b246d76e64fa831fffa5f86c2153f38;hpb=e7c351b8480a90a0cc1f45381a9d63c028f68be3;p=mirrors%2Flibpurple-core-answerscripts.git 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);