Anope IRC Services  Version 1.8
cs_register.c File Reference
#include "module.h"
Include dependency graph for cs_register.c:

Go to the source code of this file.


static int do_register (User *u)
static void myChanServHelp (User *u)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 47 of file cs_register.c.

int AnopeInit ( int  argc,
char **  argv 

Create the off command, and tell anope about it.

argcArgument count
argvArgument list
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 26 of file cs_register.c.

References c, CHANSERV, CORE, createCommand(), do_register(), Command_::help_param1, MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), myChanServHelp(), and s_NickServ.

static int do_register ( User u)

The /cs register command.

uThe user who issued the command
MOD_CONTto continue processing other modules, MOD_STOP to stop processing.

Definition at line 68 of file cs_register.c.

References ircdvars_::admin, ircdvars_::adminset, alog(), anope_cmd_mode(), anope_valid_chan(), chaninfo_::bantype, chaninfo_::bi, chaninfo_::botflags, BSDefFlags, c, chaninfo_::c, user_::u_chaninfolist::chan, chan_has_user_status(), nickcore_::channelcount, nickcore_::channelmax, check_modes(), checkDefCon(), channel_::ci, CI_VERBOTEN, cs_findchan(), CSDefBantype, CSDefFlags, CUS_OP, DEFCON_NO_NEW_CHANNELS, ircdvars_::defmlock, delchan(), chaninfo_::desc, enc_decrypt(), enc_encrypt(), enc_encrypt_check_len(), EVENT_CHAN_REGISTERED, findchan(), chaninfo_::flags, chaninfo_::founder, user_::founder_chans, chaninfo_::founderpass, GET_USER, user_::host, ircd, is_services_admin(), chaninfo_::last_topic, chaninfo_::last_topic_setter, chaninfo_::last_topic_time, chaninfo_::last_used, makechan(), MemoInfo::memomax, chaninfo_::memos, chaninfo_::mlock_on, MOD_CONT, MSMaxMemos, user_::na, chaninfo_::name, nickalias_::nc, user_::nick, nick_recognized(), NICKMAX, notice_lang(), ircdvars_::owner, ircdvars_::ownerset, PASSMAX, user_::u_chaninfolist::prev, readonly, s_ChanServ, s_NickServ, scalloc(), send_event(), sstrdup(), stricmp(), StrictPasswords, strscpy(), syntax_error(), chaninfo_::time_registered, channel_::topic, channel_::topic_setter, channel_::topic_time, and user_::username.

Referenced by AnopeInit().

static void myChanServHelp ( User u)

Add the help response to anopes /cs help output.

uThe user who is requesting help

Definition at line 58 of file cs_register.c.

References notice_lang(), and s_ChanServ.

Referenced by AnopeInit().