Anope IRC Services
Version 1.8
|
#include "module.h"
Go to the source code of this file.
Functions | |
static int | do_clearmodes (User *u) |
static void | myOperServHelp (User *u) |
int | AnopeInit (int argc, char **argv) |
void | AnopeFini (void) |
void AnopeFini | ( | void | ) |
Unload the module
Definition at line 47 of file os_clearmodes.c.
int AnopeInit | ( | int | argc, |
char ** | argv | ||
) |
Create the command, and tell anope about it.
argc | Argument count |
argv | Argument list |
Definition at line 26 of file os_clearmodes.c.
References c, CORE, createCommand(), do_clearmodes(), is_services_oper(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), and OPERSERV.
|
static |
The /os clearmodes command.
u | The user who issued the command |
MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Definition at line 69 of file os_clearmodes.c.
References ircdvars_::admin, ircdvars_::adminunset, alog(), anope_cmd_global(), anope_cmd_mode(), anope_cmd_svsmode_chan(), channel_::bans, channel_::bouncy_modes, c, chan_has_user_status(), chan_set_modes(), c_elist::count, CUS_HALFOP, CUS_OP, CUS_OWNER, CUS_PROTECT, CUS_VOICE, debug, c_elist::entries, ircdvars_::except, channel_::excepts, findchan(), channel_::flood, flood_mode_char_remove, ircdvars_::fmode, GET_USER, ircdvars_::halfop, ircdvars_::invitemode, channel_::invites, ircd, channel_::key, ircdvars_::Lmode, c_elist_entry::mask, MOD_CONT, channel_::mode, ircdvars_::modestoremove, channel_::name, c_elist_entry::next, user_::nick, notice_lang(), ircdvars_::owner, ircdvars_::ownerunset, ircdvars_::protect, channel_::redirect, s_OperServ, sstrdup(), stricmp(), ircdvars_::svsmode_ucmode, syntax_error(), channel_::users, and WallOSClearmodes.
Referenced by AnopeInit().
|
static |
Add the help response to anopes /os help output.
u | The user who is requesting help |
Definition at line 57 of file os_clearmodes.c.
References is_services_oper(), notice_lang(), and s_OperServ.
Referenced by AnopeInit().