bs_bot.c File Reference

#include "module.h"

Include dependency graph for bs_bot.c:

Go to the source code of this file.

Functions

int do_bot (User *u)
int delbot (BotInfo *bi)
void myBotServHelp (User *u)
void change_bot_nick (BotInfo *bi, char *newnick)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)


Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 49 of file bs_bot.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 29 of file bs_bot.c.

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

void change_bot_nick ( BotInfo bi,
char *  newnick 
)

Definition at line 364 of file bs_bot.c.

References botlists, insert_bot(), botinfo_::next, botinfo_::nick, botinfo_::prev, sstrdup(), and tolower.

Referenced by do_bot().

int delbot ( BotInfo bi  ) 

int do_bot ( User u  ) 

The /bs bot command.

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

Check the nick is valid re RFC 2812

Check the host is valid re RFC 2812

Check the nick is valid re RFC 2812

Definition at line 72 of file bs_bot.c.

References anope_cmd_bot_nick(), anope_cmd_chg_nick(), anope_cmd_quit(), anope_cmd_sqline(), anope_cmd_unsqline(), anope_valid_nick(), bot_rejoin_all(), ircdvars_::botserv_bot_mode, botinfo_::chancount, change_bot_nick(), botinfo_::created, delbot(), EnforceQlinedNick(), EVENT_BOT_CHANGE, EVENT_BOT_CREATE, EVENT_BOT_DEL, findbot(), findnick(), botinfo_::host, HOSTMAX, ircd, isValidHost(), isvalidnick, makebot(), MOD_CONT, user_::nick, botinfo_::nick, nickIsServices(), NickLen, NICKMAX, notice_lang(), readonly, botinfo_::real, s_BotServ, send_event(), ircdvars_::sqline, sstrdup(), stricmp(), syntax_error(), botinfo_::user, and USERMAX.

Referenced by AnopeInit().

void myBotServHelp ( User u  ) 

Add the help response to Anopes /bs help output.

Parameters:
u The user who is requesting help


Generated on Sun Oct 5 09:07:01 2008 for Anope by  doxygen 1.5.7.1