Function

Purpleserv_got_chat_in

Declaration [src]

void
purple_serv_got_chat_in (
  PurpleConnection* g,
  int id,
  const char* who,
  PurpleMessageFlags flags,
  const char* message,
  time_t mtime
)

Description [src]

Called by a protocol when a message has been received in a chat.

Parameters

g PurpleConnection
 

The connection on which the message was received.

 The data is owned by the caller of the function.
id int
 

The id of the chat, as assigned by the protocol.

who const char*
 

The name of the user who sent the message.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
flags PurpleMessageFlags
 

The flags of the message.

message const char*
 

The message received in the chat.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
mtime time_t
 

The time when the message was received.