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

Go to the source code of this file.


static int do_info (User *u)
static void send_bot_channels (User *u, BotInfo *bi)
static void myBotServHelp (User *u)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 46 of file bs_info.c.

int AnopeInit ( int  argc,
char **  argv 

Create the info command, and tell anope about it.

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

Definition at line 27 of file bs_info.c.

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

static int do_info ( User u)
static void myBotServHelp ( User u)

Add the help response to Anopes /bs help output.

uThe user who is requesting help

Definition at line 57 of file bs_info.c.

References notice_lang(), and s_BotServ.

Referenced by AnopeInit().

static void send_bot_channels ( User u,
BotInfo bi 

Definition at line 254 of file bs_info.c.

References chaninfo_::bi, chanlists, chaninfo_::name, chaninfo_::next, notice_user(), s_BotServ, and snprintf().

Referenced by do_info().