Method

IbisMessageis_command

since: 0.7

Declaration [src]

gboolean
ibis_message_is_command (
  IbisMessage* message,
  const char* command
)

Description [src]

Checks if IbisMessage:command is command.

Note: No additional normalization will be performed. But commands are normalized to upper case when they are parsed, and if you use the constants everything should be already normalized.

Available since: 0.7

Parameters

command

Type: const char*

The command to check.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if the command of message matches command, otherwise FALSE.