Anope IRC Services  Version 1.8
Functions
bs_bot.c File Reference
#include "module.h"
Include dependency graph for bs_bot.c:

Go to the source code of this file.

Functions

static int do_bot (User *u)
 
static int delbot (BotInfo *bi)
 
static void myBotServHelp (User *u)
 
static void change_bot_nick (BotInfo *bi, char *newnick)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 48 of file bs_bot.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the command, and tell anope about it.

Parameters
argcArgument count
argvArgument list
Returns
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 28 of file bs_bot.c.

References BOTSERV, c, CORE, createCommand(), do_bot(), is_services_admin(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetBotHelp(), moduleSetType(), and myBotServHelp().

static void change_bot_nick ( BotInfo bi,
char *  newnick 
)
static

Definition at line 375 of file bs_bot.c.

References botlists, insert_bot(), botinfo_::next, botinfo_::nick, botinfo_::prev, sstrdup(), and tolower.

Referenced by do_bot().

static int delbot ( BotInfo bi)
static
static int do_bot ( User u)
static
static void myBotServHelp ( User u)
static

Add the help response to Anopes /bs help output.

Parameters
uThe user who is requesting help

Definition at line 59 of file bs_bot.c.

References is_services_admin(), notice_lang(), and s_BotServ.

Referenced by AnopeInit().