--- a/libpurple/prpl.h Fri Aug 30 15:27:52 2013 +0530 +++ b/libpurple/prpl.h Sat Aug 31 02:20:52 2013 +0530 @@ -630,8 +630,10 @@ PurpleGetPublicAliasFailureCallback failure_cb); /** - * Gets the maximum message size in bytes for the protocol. It may - * depend on connection-specific variables (like protocol version). + * Gets the maximum message size in bytes for the conversation. + * + * It may depend on connection-specific or conversation-specific + * variables, like channel or buddy's name length. * * This value is intended for plaintext message, the exact value may be * lower because of: @@ -639,10 +641,12 @@ * - formatting, * - used special characters. * - * @param gc The connection to query, or NULL to get safe minimum. - * @return Maximum message size, or 0 if unspecified or infinite. + * @param conv The conversation to query, or NULL to get safe minimum + * for the protocol. + * + * @return Maximum message size, 0 if unspecified, -1 for infinite. */ - gsize (*get_max_message_size)(PurpleConnection *gc); + gssize (*get_max_message_size)(PurpleConversation *conv); }; #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \