bs_act.c File Reference

#include "module.h"

Go to the source code of this file.

Functions

void AnopeFini (void)
int AnopeInit (int argc, char **argv)
int do_act (User *u)
void myBotServHelp (User *u)


Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 45 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 27 of file bs_act.c.

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

int do_act ( User u  ) 

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 64 of file bs_act.c.

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

Referenced by AnopeInit().

void myBotServHelp ( User u  ) 

Add the help response to Anopes /bs help output.

Parameters:
u The user who is requesting help

Definition at line 54 of file bs_act.c.

References notice_lang(), and s_BotServ.

Referenced by AnopeInit().


Generated on Sun Dec 30 09:26:55 2007 for Anope by  doxygen 1.5.1-20070107