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

Go to the source code of this file.

Functions

static int do_say (User *u)
 
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 44 of file bs_say.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 26 of file bs_say.c.

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

static int do_say ( User u)
static

The /bs say command.

Parameters
uThe user who issued the command
MOD_CONTto continue processing other modules, MOD_STOP to stop processing.

Definition at line 65 of file bs_say.c.

References anope_cmd_privmsg(), chaninfo_::bi, BSMinUsers, chaninfo_::c, CA_SAY, check_access(), CI_VERBOTEN, cs_findchan(), debug, findchan(), chaninfo_::flags, botinfo_::lastmsg, LogBot, logchan, LogChannel, MOD_CONT, chaninfo_::name, botinfo_::nick, user_::nick, notice_help(), notice_lang(), s_BotServ, syntax_error(), and channel_::usercount.

Referenced by AnopeInit().

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 55 of file bs_say.c.

References notice_lang(), and s_BotServ.

Referenced by AnopeInit().