#include "module.h"
Go to the source code of this file.
Functions | |
| static int | do_bot (User *u) |
| static int | delbot (BotInfo *bi) |
| static void | myBotServHelp (User *u) |
| static 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 28 of file bs_bot.c.
References BOTSERV, c, CORE, createCommand(), do_bot(), is_services_admin(), MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetBotHelp(), moduleSetType(), and myBotServHelp().
| static void change_bot_nick | ( | BotInfo * | bi, | |
| char * | newnick | |||
| ) | [static] |
Definition at line 375 of file bs_bot.c.
References botlists, insert_bot(), botinfo_::next, botinfo_::nick, botinfo_::prev, sstrdup(), and tolower.
Referenced by do_bot().
| static int delbot | ( | BotInfo * | bi | ) | [static] |
Definition at line 352 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().
| static int do_bot | ( | User * | u | ) | [static] |
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 71 of file bs_bot.c.
References alog(), 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(), user_::host, botinfo_::host, HOSTMAX, ircd, isValidHost(), isvalidnick, makebot(), user_::nick, botinfo_::nick, nickIsServices(), NickLen, NICKMAX, notice_lang(), readonly, botinfo_::real, s_BotServ, send_event(), ircdvars_::sqline, sstrdup(), stricmp(), syntax_error(), botinfo_::user, USERMAX, and user_::username.
Referenced by AnopeInit().
| static void myBotServHelp | ( | User * | u | ) | [static] |
Add the help response to Anopes /bs help output.
| u | The user who is requesting help |
Definition at line 59 of file bs_bot.c.
References is_services_admin(), notice_lang(), and s_BotServ.
Referenced by AnopeInit().
1.7.1