bs_info.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_info (User *u)
void myBotServHelp (User *u)
void send_bot_channels (User *u, BotInfo *bi)


Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 47 of file bs_info.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the info 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 28 of file bs_info.c.

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

int do_info ( User u  ) 

The /ns info command.

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

Definition at line 68 of file bs_info.c.

References chaninfo_::bi, BI_PRIVATE, chaninfo_::botflags, BS_DONTKICKOPS, BS_DONTKICKVOICES, BS_FANTASY, BS_GREET, BS_KICK_BADWORDS, BS_KICK_BOLDS, BS_KICK_CAPS, BS_KICK_COLORS, BS_KICK_FLOOD, BS_KICK_REPEAT, BS_KICK_REVERSES, BS_KICK_UNDERLINES, BS_NOBOT, BS_SYMBIOSIS, BUFSIZE, chaninfo_::capsmin, chaninfo_::capspercent, botinfo_::chancount, CI_VERBOTEN, botinfo_::created, cs_findchan(), findbot(), chaninfo_::flags, chaninfo_::floodlines, chaninfo_::floodsecs, getstring, botinfo_::host, is_founder(), is_services_admin(), MOD_CONT, user_::na, chaninfo_::name, botinfo_::nick, notice_lang(), botinfo_::real, chaninfo_::repeattimes, s_BotServ, send_bot_channels(), snprintf(), strftime_lang(), syntax_error(), chaninfo_::ttb, TTB_BADWORDS, TTB_BOLDS, TTB_CAPS, TTB_COLORS, TTB_FLOOD, TTB_REPEAT, TTB_REVERSES, TTB_UNDERLINES, and botinfo_::user.

Referenced by AnopeInit().

void myBotServHelp ( User u  ) 

Add the help response to Anopes /bs help output.

Parameters:
u The user who is requesting help

void send_bot_channels ( User u,
BotInfo bi 
)

Definition at line 255 of file bs_info.c.

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

Referenced by do_info().


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