Method

PurpleConnectiondisconnect

Declaration [src]

gboolean
purple_connection_disconnect (
  PurpleConnection* connection
  GError** error
)

Description [src]

Tells the connection to disconnect. This is done by calling the Purple.ConnectionClass.disconnect function. State is managed by this function.

The default Purple.ConnectionClass.disconnect is to call Purple.ProtocolClass.close.

Available since:3.0.0

Return value

Returns: gboolean
 

TRUE if the account was disconnected gracefully, otherwise FALSE with error possibly set.