libircbot
library providing a framework for implementing an IRC bot
Loading...
Searching...
No Matches
IrcCommand Class Reference

All valid IRC protocol messages according to RFC 2812. More...

#include <include/irccommand.h>

Public Member Functions

IrcCommand IrcCommand_parse (const char *cmd)
 Parse a string to the corresponding IrcCommand. More...
 
const char * IrcCommand_str (IrcCommand self)
 Get the corresponsing string for and IrcCommand. More...
 

Detailed Description

All valid IRC protocol messages according to RFC 2812.

Member Function Documentation

◆ IrcCommand_parse()

IrcCommand IrcCommand_parse ( const char *  cmd)

Parse a string to the corresponding IrcCommand.

Parameters
cmdthe command string
Returns
the IrcCommand, or CMD_UNKNOWN

◆ IrcCommand_str()

const char * IrcCommand_str ( IrcCommand  self)

Get the corresponsing string for and IrcCommand.

Parameters
selfthe IrcCommand
Returns
the corresponding string, or NULL if invalid

The documentation for this class was generated from the following file: