Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'skypeweb/purplecompat.h')
-rw-r--r--skypeweb/purplecompat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/skypeweb/purplecompat.h b/skypeweb/purplecompat.h
index 04039ba..d4de884 100644
--- a/skypeweb/purplecompat.h
+++ b/skypeweb/purplecompat.h
@@ -28,6 +28,12 @@
//TODO remove this when dx adds this to the PurpleMessageFlags enum
#define PURPLE_MESSAGE_REMOTE_SEND 0x10000
+static inline void purple_conversation_write_system_message_ts(PurpleConversation *conv, const gchar *msg, PurpleMessageFlags flags, time_t ts) {
+ PurpleMessage *pmsg = purple_message_new_system(msg, flags);
+ purple_message_set_time(pmsg, ts);
+ purple_conversation_write_message(conv, pmsg);
+}
+
#else /*!PURPLE_VERSION_CHECK(3, 0, 0)*/
#include "connection.h"
@@ -143,6 +149,7 @@ purple_message_destroy(PurpleMessage *message)
# define PURPLE_MESSAGE_REMOTE_SEND 0x10000
#endif
+#define purple_conversation_write_system_message_ts(conv, msg, flags, ts) purple_conversation_write((conv), NULL, (msg), (flags) | PURPLE_MESSAGE_SYSTEM, (ts));
#define purple_conversation_write_system_message(conv, msg, flags) purple_conversation_write((conv), NULL, (msg), (flags) | PURPLE_MESSAGE_SYSTEM, time(NULL));
#define PurpleProtocolChatEntry struct proto_chat_entry