ircbot.c  0.3.0
Multi-platform IRC bot in pure C
commands.h File Reference

File containing bot command functions. More...

Go to the source code of this file.

Functions

int commands_ident (struct IRC_Bot *bot)
 Send an ident response to the server. More...
 
int commands_pong (struct IRC_Bot *bot, const char pong_id[])
 Send a PONG message to the server. More...
 

Detailed Description

File containing bot command functions.

Author
Mateusz Makowski
Date
16.09.2018

Function Documentation

◆ commands_ident()

int commands_ident ( struct IRC_Bot bot)

Send an ident response to the server.

Parameters
botpointer to IRC_Bot structure
Returns
0 on failure, 1 on success

◆ commands_pong()

int commands_pong ( struct IRC_Bot bot,
const char  pong_id[] 
)

Send a PONG message to the server.

Parameters
botpointer to IRC_Bot structure
Returns
0 on failure, 1 on success