--- a/libpurple/prpl.h Thu May 22 14:08:33 2014 +0200 +++ b/libpurple/prpl.h Thu May 22 15:15:16 2014 +0200 @@ -84,6 +84,7 @@ #include "xfer.h" #include "image.h" #include "media.h" +#include "message.h" #include "notify.h" #include "proxy.h" #include "plugin.h" @@ -317,9 +318,7 @@ * errno values, or just big something. If the message should * not be echoed to the conversation window, return 0. */ - int (*send_im)(PurpleConnection *, const char *who, - const char *message, - PurpleMessageFlags flags); + int (*send_im)(PurpleConnection *, PurpleMessage *msg); void (*set_info)(PurpleConnection *, const char *info);