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

Implementation of commands.h. More...

#include "commands.h"
#include "bot.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>

Macros

#define OK   1
 
#define ERROR   0
 

Functions

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

Detailed Description

Implementation of commands.h.

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