Function

Purplecmd_execute

since: 2.11

Declaration [src]

gboolean
purple_cmd_execute (
  PurpleCmdId id,
  PurpleConversation* conv,
  const gchar* cmdline
)

Description [src]

Execute a specific command.

The UI calls this to execute a command, after parsing the command name.

Available since: 2.11

Parameters

id

Type: PurpleCmdId

The command to execute.

conv

Type: PurpleConversation

The conversation the command was typed in.

The data is owned by the caller of the function.
cmdline

Type: const gchar*

The command the user typed (only the arguments). The caller should remove the prefix and the command name. It should not contain any formatting, and should be in plain text (no HTML entities).

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

Return value

Type: gboolean

TRUE if the command handled the cmdline, FALSE otherwise.