#include "module.h"
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) |
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Create the command, and tell anope about it.
| argc | Argument count | |
| argv | Argument list |
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 | ) |
Definition at line 341 of file bs_bot.c.
References botlists, cs_remove_bot(), botinfo_::host, nbots, botinfo_::next, botinfo_::nick, botinfo_::prev, botinfo_::real, tolower, and botinfo_::user.
Referenced by do_bot().
| int do_bot | ( | User * | u | ) |
The /bs bot command.
| 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.
| u | The user who is requesting help |
1.5.7.1