Functions

bs_act.c File Reference

#include "module.h"
Include dependency graph for bs_act.c:

Go to the source code of this file.

Functions

static int do_act (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_act.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the command, and tell anope about it.

Parameters:
argc Argument count
argv Argument list
Returns:
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 26 of file bs_act.c.

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

static int do_act ( User u  )  [static]

The /bs act command.

Parameters:
u The user who issued the command
MOD_CONT to continue processing other modules, MOD_STOP to stop processing.

Definition at line 63 of file bs_act.c.

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

Referenced by AnopeInit().

static void myBotServHelp ( User u  )  [static]

Add the help response to Anopes /bs help output.

Parameters:
u The user who is requesting help

Definition at line 53 of file bs_act.c.

References notice_lang(), and s_BotServ.

Referenced by AnopeInit().