#include "module.h"
Go to the source code of this file.
Functions | |
| void | myChanServHelp (User *u) |
| int | do_util (User *u, CSModeUtil *util) |
| int | do_op (User *u) |
| int | do_deop (User *u) |
| int | do_voice (User *u) |
| int | do_devoice (User *u) |
| int | do_halfop (User *u) |
| int | do_dehalfop (User *u) |
| int | do_protect (User *u) |
| int | do_deprotect (User *u) |
| int | do_owner (User *u) |
| int | do_deowner (User *u) |
| int | AnopeInit (int argc, char **argv) |
| void | AnopeFini (void) |
| void AnopeFini | ( | void | ) |
Unload the module
Definition at line 97 of file cs_modes.c.
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Create the command, and tell anope about it.
| argc | Argument count | |
| argv | Argument list |
Definition at line 37 of file cs_modes.c.
References ircdvars_::admin, c, CHANSERV, CORE, createCommand(), do_dehalfop(), do_deop(), do_deowner(), do_deprotect(), do_devoice(), do_halfop(), do_op(), do_owner(), do_protect(), do_voice(), ircdvars_::halfop, ircd, MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), myChanServHelp(), ircdvars_::owner, and ircdvars_::protect.
| int do_dehalfop | ( | User * | u | ) |
Definition at line 175 of file cs_modes.c.
References csmodeutils, do_util(), ircdvars_::halfop, ircd, MOD_CONT, and MUT_DEHALFOP.
Referenced by AnopeInit().
| int do_deop | ( | User * | u | ) |
Definition at line 143 of file cs_modes.c.
References csmodeutils, do_util(), and MUT_DEOP.
Referenced by AnopeInit().
| int do_deowner | ( | User * | u | ) |
Definition at line 264 of file cs_modes.c.
References anope_cmd_mode(), c, chan_set_modes(), user_::chans, channel_::ci, CI_VERBOTEN, findchan(), chaninfo_::flags, ircd, is_founder(), is_on_chan(), MOD_CONT, chaninfo_::name, channel_::name, user_::u_chanlist::next, user_::nick, notice_lang(), ircdvars_::owner, ircdvars_::ownerunset, s_ChanServ, sstrdup(), and whosends.
Referenced by AnopeInit().
| int do_deprotect | ( | User * | u | ) |
Definition at line 197 of file cs_modes.c.
References ircdvars_::admin, csmodeutils, do_util(), ircd, MOD_CONT, MUT_DEPROTECT, and ircdvars_::protect.
Referenced by AnopeInit().
| int do_devoice | ( | User * | u | ) |
Definition at line 157 of file cs_modes.c.
References csmodeutils, do_util(), and MUT_DEVOICE.
Referenced by AnopeInit().
| int do_halfop | ( | User * | u | ) |
Definition at line 164 of file cs_modes.c.
References csmodeutils, do_util(), ircdvars_::halfop, ircd, MOD_CONT, and MUT_HALFOP.
Referenced by AnopeInit().
| int do_op | ( | User * | u | ) |
The /cs op/deop/voice/devoice etc.. commands.
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Definition at line 136 of file cs_modes.c.
References csmodeutils, do_util(), and MUT_OP.
Referenced by AnopeInit().
| int do_owner | ( | User * | u | ) |
Definition at line 208 of file cs_modes.c.
References anope_cmd_mode(), c, chan_set_modes(), user_::chans, channel_::ci, CI_VERBOTEN, findchan(), chaninfo_::flags, ircd, is_founder(), is_on_chan(), MOD_CONT, chaninfo_::name, channel_::name, user_::u_chanlist::next, user_::nick, notice_lang(), ircdvars_::owner, ircdvars_::ownerset, s_ChanServ, sstrdup(), and whosends.
Referenced by AnopeInit().
| int do_protect | ( | User * | u | ) |
Definition at line 186 of file cs_modes.c.
References ircdvars_::admin, csmodeutils, do_util(), ircd, MOD_CONT, MUT_PROTECT, and ircdvars_::protect.
Referenced by AnopeInit().
| int do_util | ( | User * | u, | |
| CSModeUtil * | util | |||
| ) |
Definition at line 320 of file cs_modes.c.
References anope_cmd_mode(), c, chan_set_modes(), user_::chans, check_access(), channel_::ci, CI_PEACE, CI_VERBOTEN, findchan(), finduser(), chaninfo_::flags, get_access(), is_on_chan(), is_protected(), csmodeutil_::level, csmodeutil_::levelself, MOD_CONT, csmodeutil_::mode, chaninfo_::name, channel_::name, csmodeutil_::name, user_::u_chanlist::next, user_::nick, notice(), csmodeutil_::notice, notice_lang(), s_ChanServ, stricmp(), and whosends.
Referenced by do_dehalfop(), do_deop(), do_deprotect(), do_devoice(), do_halfop(), do_op(), do_protect(), and do_voice().
| int do_voice | ( | User * | u | ) |
Definition at line 150 of file cs_modes.c.
References csmodeutils, do_util(), and MUT_VOICE.
Referenced by AnopeInit().
| void myChanServHelp | ( | User * | u | ) |
Add the help response to anopes /cs help output.
| u | The user who is requesting help |
1.5.7.1