Method

PurpleAccountprivacy_permit_add

Declaration [src]

gboolean
purple_account_privacy_permit_add (
  PurpleAccount* account,
  const char* name,
  gboolean local_only
)

Description [src]

Adds a user to the account’s permit list.

Parameters

name const char*
 

The name of the user to add to the list.

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

If TRUE, only the local list is updated, and not the server.

Return value

Returns: gboolean
 

TRUE if the user was added successfully, or FALSE otherwise.