Method

PurpleConnectiondisconnect

since: 3.0

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

Return value

Type: gboolean

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