modules.h File Reference

#include <time.h>
#include "services.h"
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  Command_
struct  CommandHash_
struct  EvtHook_
struct  EvtHookHash_
struct  EvtMessage_
struct  EvtMessageHash_
struct  Message_
struct  MessageHash_
struct  Module_
struct  ModuleCallBack_
struct  ModuleHash_
struct  ModuleLang_
struct  ModuleQueue_

Defines

#define ano_modclearerr()   dlerror()
#define ano_modclose(file)   dlclose(file)
#define ano_moderr()   dlerror()
#define ano_modopen(file)   dlopen(file, RTLD_LAZY)
#define ano_modsym(file, symbol)   dlsym(file, DL_PREFIX symbol)
#define BOTSERV   BS_cmdTable
#define CHANSERV   CS_cmdTable
#define CMD_HASH(x)   (((x)[0]&31)<<5 | ((x)[1]&31))
#define EVENT   EVENT_cmdTable
#define EVENTHOOKS   HOOK_cmdTable
#define HELPSERV   HE_cmdTable
#define HOSTSERV   HS_cmdTable
#define IRCD   IRCD_cmdTable
#define MAX_CMD_HASH   1024
#define MDE
#define MEMOSERV   MS_cmdTable
#define MOD_CONT   0
#define MOD_ERR_EXISTS   3
#define MOD_ERR_FILE_IO   11
#define MOD_ERR_MEMORY   1
#define MOD_ERR_NO_MOD_NAME   13
#define MOD_ERR_NODELETE   9
#define MOD_ERR_NOEXIST   4
#define MOD_ERR_NOLOAD   6
#define MOD_ERR_NOSERVICE   12
#define MOD_ERR_NOUNLOAD   7
#define MOD_ERR_NOUSER   5
#define MOD_ERR_OK   0
#define MOD_ERR_PARAMS   2
#define MOD_ERR_SYNTAX   8
#define MOD_ERR_UNKNOWN   10
#define MOD_STOP   1
#define MODULE_EXT   ".so"
#define MODULE_HASH   Module_table
#define NICKSERV   NS_cmdTable
#define OPERSERV   OS_cmdTable

Typedefs

typedef void * ano_module_t
typedef Command_ Command
typedef CommandHash_ CommandHash
typedef EvtHook_ EvtHook
typedef EvtHookHash_ EvtHookHash
typedef EvtMessage_ EvtMessage
typedef EvtMessageHash_ EvtMessageHash
typedef Message_ Message
typedef MessageHash_ MessageHash
typedef Module_ Module
typedef ModuleCallBack_ ModuleCallBack
typedef ModuleHash_ ModuleHash
typedef ModuleLang_ ModuleLang
typedef ModuleQueue_ ModuleQueue

Enumerations

enum  MODType {
  CORE, PROTOCOL, THIRD, SUPPORTED,
  QATESTED, ENCRYPTION
}
enum  ModuleOperation { MOD_OP_LOAD, MOD_OP_UNLOAD }

Functions

MDE int addCommand (CommandHash *cmdTable[], Command *c, int pos)
MDE int addCoreCommand (CommandHash *cmdTable[], Command *c)
int addCoreEventHandler (EvtMessageHash *msgEvtTable[], EvtMessage *evm)
int addCoreEventHook (EvtHookHash *HookEvtTable[], EvtHook *evh)
MDE int addCoreMessage (MessageHash *msgTable[], Message *m)
int addEventHandler (EvtMessageHash *msgEvtTable[], EvtMessage *evm)
MDE int addMessage (MessageHash *msgTable[], Message *m, int pos)
int addModule (Module *m)
MDE CommandcreateCommand (const char *name, int(*func)(User *u), int(*has_priv)(User *u), int help_all, int help_reg, int help_oper, int help_admin, int help_root)
MDE EvtMessagecreateEventHandler (char *name, int(*func)(char *source, int ac, char **av))
MDE EvtHookcreateEventHook (char *name, int(*func)(int argc, char **argv))
MDE MessagecreateMessage (const char *name, int(*func)(char *source, int ac, char **av))
MDE ModulecreateModule (char *filename)
MDE int delCommand (CommandHash *cmdTable[], Command *c, char *mod_name)
int delEventHandler (EvtMessageHash *msgEvtTable[], EvtMessage *evm, char *mod_name)
int delEventHook (EvtHookHash *HookEvtTable[], EvtHook *evh, char *mod_name)
int delMessage (MessageHash *msgTable[], Message *m, char *mod_name)
int delModule (Module *m)
MDE int destroyCommand (Command *c)
int destroyEventHandler (EvtMessage *evm)
int destroyEventHook (EvtHook *evh)
int destroyMessage (Message *m)
int destroyModule (Module *m)
int encryption_module_init (void)
CommandfindCommand (CommandHash *cmdTable[], const char *name)
EvtMessagefindEventHandler (EvtMessageHash *msgEvtTable[], const char *name)
EvtHookfindEventHook (EvtHookHash *HookEvtTable[], const char *name)
MessagefindMessage (MessageHash *msgTable[], const char *name)
MDE ModulefindModule (char *name)
MDE void handleModuleOperationQueue (void)
int loadModule (Module *m, User *u)
MDE int moduleAddAdminHelp (Command *c, int(*func)(User *u))
MDE void moduleAddAuthor (const char *author)
MDE int moduleAddCallback (char *name, time_t when, int(*func)(int argc, char *argv[]), int argc, char **argv)
MDE int moduleAddCommand (CommandHash *cmdTable[], Command *c, int pos)
MDE int moduleAddData (ModuleData **md, char *key, char *value)
MDE int moduleAddEventHandler (EvtMessage *evm)
MDE int moduleAddEventHook (EvtHook *evh)
MDE int moduleAddHelp (Command *c, int(*func)(User *u))
MDE int moduleAddMessage (Message *m, int pos)
MDE int moduleAddOperHelp (Command *c, int(*func)(User *u))
MDE int moduleAddRegHelp (Command *c, int(*func)(User *u))
MDE int moduleAddRootHelp (Command *c, int(*func)(User *u))
MDE void moduleAddVersion (const char *version)
MDE void moduleCallBackDeleteEntry (ModuleCallBack *prev)
void moduleCallBackPrepForUnload (char *mod_name)
int moduleDataDebug (ModuleData **md)
MDE void moduleDelAllData (ModuleData **md)
void moduleDelAllDataMod (Module *m)
MDE void moduleDelCallback (char *name)
MDE int moduleDelCommand (CommandHash *cmdTable[], char *name)
MDE void moduleDelData (ModuleData **md, char *key)
MDE void moduleDeleteLanguage (int langNumber)
MDE int moduleDelMessage (char *name)
MDE void moduleDisplayHelp (int service, User *u)
MDE int moduleEventDelHandler (char *name)
MDE int moduleEventDelHook (const char *name)
MDE int moduleGetConfigDirective (Directive *h)
MDE char * moduleGetData (ModuleData **md, char *key)
MDE char * moduleGetLangString (User *u, int number)
MDE char * moduleGetLastBuffer (void)
MDE void moduleInsertLanguage (int langNumber, int ac, char **av)
MDE boolean moduleMinVersion (int major, int minor, int patch, int build)
MDE void moduleNoticeLang (char *source, User *u, int number,...)
void modules_delayed_init (void)
void modules_init (void)
MDE void moduleSetBotHelp (void(*func)(User *u))
MDE void moduleSetChanHelp (void(*func)(User *u))
MDE void moduleSetHelpHelp (void(*func)(User *u))
MDE void moduleSetHostHelp (void(*func)(User *u))
MDE void moduleSetMemoHelp (void(*func)(User *u))
MDE void moduleSetNickHelp (void(*func)(User *u))
MDE void moduleSetOperHelp (void(*func)(User *u))
MDE void moduleSetType (MODType type)
int prepForUnload (Module *m)
int protocol_module_init (void)
MDE int queueModuleLoad (char *name, User *u)
MDE int queueModuleUnload (char *name, User *u)
int unloadModule (Module *m, User *u)
MDE void updateProtectDetails (char *level_info_protect_word, char *level_info_protectme_word, char *fant_protect_add, char *fant_protect_del, char *level_protect_word, char *protect_set_mode, char *protect_unset_mode)

Variables

MDE CommandHashBOTSERV [MAX_CMD_HASH]
MDE CommandHashCHANSERV [MAX_CMD_HASH]
MDE EvtMessageHashEVENT [MAX_CMD_HASH]
MDE EvtHookHashEVENTHOOKS [MAX_CMD_HASH]
MDE CommandHashHELPSERV [MAX_CMD_HASH]
MDE CommandHashHOSTSERV [MAX_CMD_HASH]
MDE MessageHashIRCD [MAX_CMD_HASH]
MDE CommandHashMEMOSERV [MAX_CMD_HASH]
MDE char * mod_current_buffer
char * mod_current_evtbuffer
MDE Modulemod_current_module
MDE char * mod_current_module_name
MDE int mod_current_op
MDE Usermod_current_user
MDE ModuleHashMODULE_HASH [MAX_CMD_HASH]
MDE CommandHashNICKSERV [MAX_CMD_HASH]
MDE CommandHashOPERSERV [MAX_CMD_HASH]


Define Documentation

 
#define ano_modclearerr (  )     dlerror()

Definition at line 44 of file modules.h.

Referenced by loadModule().

#define ano_modclose ( file   )     dlclose(file)

Definition at line 38 of file modules.h.

Referenced by loadModule(), modules_unload_all(), and unloadModule().

 
#define ano_moderr (  )     dlerror()

Definition at line 36 of file modules.h.

Referenced by loadModule(), modules_unload_all(), and unloadModule().

#define ano_modopen ( file   )     dlopen(file, RTLD_LAZY)

Definition at line 35 of file modules.h.

Referenced by loadModule().

#define ano_modsym ( file,
symbol   )     dlsym(file, DL_PREFIX symbol)

Definition at line 37 of file modules.h.

Referenced by loadModule(), modules_unload_all(), and unloadModule().

#define BOTSERV   BS_cmdTable

Definition at line 58 of file modules.h.

Referenced by AnopeInit(), botserv(), do_help(), do_modinfo(), and moduleAddCommand().

#define CHANSERV   CS_cmdTable

Definition at line 61 of file modules.h.

Referenced by AnopeInit(), chanserv(), do_modinfo(), and moduleAddCommand().

#define CMD_HASH (  )     (((x)[0]&31)<<5 | ((x)[1]&31))

Definition at line 51 of file modules.h.

Referenced by addCommand(), addEventHandler(), addEventHook(), addMessage(), addModule(), delCommand(), delEventHandler(), delEventHook(), delMessage(), delModule(), displayCommandFromHash(), displayEvtMessageFromHash(), displayHookFromHash(), displayMessageFromHash(), findCommand(), findEventHandler(), findEventHook(), findMessage(), and findModule().

#define EVENT   EVENT_cmdTable

Definition at line 66 of file modules.h.

Referenced by displayEvtMessageFromHash(), find_event(), moduleAddEventHandler(), and moduleEventDelHandler().

#define EVENTHOOKS   HOOK_cmdTable

Definition at line 67 of file modules.h.

Referenced by displayHookFromHash(), find_eventhook(), moduleAddEventHook(), and moduleEventDelHook().

#define HELPSERV   HE_cmdTable

Definition at line 62 of file modules.h.

Referenced by AnopeInit(), do_modinfo(), helpserv(), and moduleAddCommand().

#define HOSTSERV   HS_cmdTable

Definition at line 57 of file modules.h.

Referenced by AnopeInit(), do_modinfo(), hostserv(), moduleAddCommand(), and prepForUnload().

#define IRCD   IRCD_cmdTable

Definition at line 64 of file modules.h.

Referenced by displayMessageFromHash(), do_modinfo(), find_message(), moduleAddIRCDMsgs(), moduleAddMessage(), moduleAddMsgs(), and moduleDelMessage().

#define MAX_CMD_HASH   1024

Definition at line 52 of file modules.h.

Referenced by do_modinfo(), do_modlist(), encryptionModuleLoaded(), moduleDisplayHelp(), modules_unload_all(), prepForUnload(), and protocolModuleLoaded().

#define MDE

Definition at line 90 of file modules.h.

#define MEMOSERV   MS_cmdTable

Definition at line 59 of file modules.h.

Referenced by AnopeInit(), do_modinfo(), memoserv(), and moduleAddCommand().

#define MOD_CONT   0

Definition at line 55 of file modules.h.

Referenced by anope_event_436(), anope_event_482(), anope_event_admin(), anope_event_away(), anope_event_bmask(), anope_event_burst(), anope_event_capab(), anope_event_chghost(), anope_event_chgident(), anope_event_chgname(), anope_event_client(), anope_event_credits(), anope_event_cs(), anope_event_encap(), anope_event_eob(), anope_event_eos(), anope_event_error(), anope_event_euid(), anope_event_fjoin(), anope_event_fmode(), anope_event_ftopic(), anope_event_globops(), anope_event_gnotice(), anope_event_hs(), anope_event_idle(), anope_event_invite(), anope_event_join(), anope_event_kick(), anope_event_kill(), anope_event_luserslock(), anope_event_mode(), anope_event_motd(), anope_event_ms(), anope_event_myid(), anope_event_netctrl(), anope_event_netglobal(), anope_event_netinfo(), anope_event_newmask(), anope_event_nick(), anope_event_notice(), anope_event_ns(), anope_event_null(), anope_event_opertype(), anope_event_os(), anope_event_part(), anope_event_pass(), anope_event_ping(), anope_event_privmsg(), anope_event_quit(), anope_event_rehash(), anope_event_rsquit(), anope_event_sajoin(), anope_event_samode(), anope_event_sanick(), anope_event_sapart(), anope_event_sdesc(), anope_event_server(), anope_event_sethost(), anope_event_setident(), anope_event_setname(), anope_event_sid(), anope_event_sjoin(), anope_event_smo(), anope_event_snetinfo(), anope_event_snick(), anope_event_snotice(), anope_event_sqline(), anope_event_squit(), anope_event_svinfo(), anope_event_svsinfo(), anope_event_swhois(), anope_event_tburst(), anope_event_tctrl(), anope_event_tkl(), anope_event_tmode(), anope_event_topic(), anope_event_umode2(), anope_event_vctrl(), anope_event_version(), anope_event_vhost(), anope_event_vs(), anope_event_whois(), AnopeInit(), charybdis_send_account(), charybdis_send_deaccount(), check_email_limit_reached(), delBan(), do_access(), do_act(), do_admin(), do_akick(), do_akill(), do_assign(), do_badwords(), do_ban(), do_bot(), do_botlist(), do_cancel(), do_chankill(), do_chanlist(), do_clear(), do_clearignore(), do_clearmodes(), do_confirm(), do_cs_kick(), do_cs_topic(), do_defcon(), do_dehalfop(), do_del(), do_delall(), do_deowner(), do_deprotect(), do_drop(), do_exception(), do_fantasy(), do_forbid(), do_getemail(), do_getkey(), do_getpass(), do_ghost(), do_global(), do_group(), do_halfop(), do_help(), do_help_cmd(), do_hs_sync(), do_identify(), do_ignorelist(), do_ignoreuser(), do_info(), do_invite(), do_jupe(), do_kickcmd(), do_levels(), do_link(), do_list(), do_listlinks(), do_logonnews(), do_logout(), do_memocheck(), do_modinfo(), do_modload(), do_modunload(), do_moo(), do_nickupdate(), do_off(), do_on(), do_on_id(), do_oper(), do_opernews(), do_operoline(), do_operumodes(), do_os_kick(), do_os_mode(), do_os_quit(), do_owner(), do_protect(), do_randomnews(), do_raw(), do_read(), do_recover(), do_register(), do_release(), do_reload(), do_resend(), do_restart(), do_rsend(), do_run_cmd(), do_saset(), do_saset_autoop(), do_saset_email(), do_saset_greet(), do_saset_hide(), do_saset_icq(), do_saset_kill(), do_saset_msg(), do_saset_noexpire(), do_saset_password(), do_saset_private(), do_saset_secure(), do_saset_url(), do_say(), do_send(), do_sendall(), do_sendpass(), do_session(), do_set(), do_set_autoop(), do_set_bantype(), do_set_desc(), do_set_email(), do_set_entrymsg(), do_set_founder(), do_set_greet(), do_set_hide(), do_set_icq(), do_set_keeptopic(), do_set_kill(), do_set_language(), do_set_limit(), do_set_mlock(), do_set_msg(), do_set_noexpire(), do_set_notify(), do_set_opnotice(), do_set_password(), do_set_peace(), do_set_private(), do_set_restricted(), do_set_secure(), do_set_securefounder(), do_set_secureops(), do_set_signkick(), do_set_successor(), do_set_topiclock(), do_set_url(), do_set_xop(), do_setall(), do_setmodes(), do_sgline(), do_shutdown(), do_sqline(), do_staff(), do_stats(), do_status(), do_suspend(), do_svsnick(), do_szline(), do_tban(), do_unassign(), do_unban(), do_unlink(), do_unsuspend(), do_update(), do_userlist(), do_util(), do_xop(), event_message_process(), event_process_hook(), hs_do_activate(), hs_do_list_out(), hs_do_reject(), hs_do_request(), hs_do_waiting(), hs_help_activate(), hs_help_reject(), hs_help_request(), hs_help_waiting(), hsreqevt_db_backup(), hsreqevt_db_saving(), listOut(), m_away(), m_kill(), m_motd(), m_nickcoll(), m_privmsg(), m_stats(), m_time(), m_version(), m_whois(), mBackupData(), mChanHelp(), mEventReload(), mLoadConfig(), mNickHelp(), moduleAddAdminHelp(), moduleAddHelp(), moduleAddOperHelp(), moduleAddRegHelp(), moduleAddRootHelp(), mReadConfig(), mShowSetting(), my_cs_appendtopic(), my_cs_enforce(), my_event_reload(), my_nick(), my_ns_register(), my_ns_set(), my_privmsg(), my_save(), myAddChanInfo(), myAddNickInfo(), myChanInfo(), myDoSet(), myFullHelp(), myHostServMooAdminHelp(), myHostServMooHelp(), myHostServMooOperHelp(), myHostServMooRegHelp(), myHostServMooRootHelp(), myNickInfo(), ns_do_drop(), process(), and test().

#define MOD_ERR_EXISTS   3

Definition at line 75 of file modules.h.

Referenced by addCommand(), addMessage(), addModule(), and loadModule().

#define MOD_ERR_FILE_IO   11

Definition at line 83 of file modules.h.

Referenced by moduleCopyFile().

#define MOD_ERR_MEMORY   1

Definition at line 73 of file modules.h.

Referenced by moduleAddCallback(), and moduleAddData().

#define MOD_ERR_NO_MOD_NAME   13

Definition at line 85 of file modules.h.

Referenced by addCommand().

#define MOD_ERR_NODELETE   9

Definition at line 81 of file modules.h.

#define MOD_ERR_NOEXIST   4

Definition at line 76 of file modules.h.

Referenced by moduleCopyFile(), moduleDelCommand(), moduleDelMessage(), moduleEventDelHandler(), and moduleEventDelHook().

#define MOD_ERR_NOLOAD   6

Definition at line 78 of file modules.h.

Referenced by loadModule().

#define MOD_ERR_NOSERVICE   12

Definition at line 84 of file modules.h.

Referenced by moduleAddCommand().

#define MOD_ERR_NOUNLOAD   7

Definition at line 79 of file modules.h.

Referenced by unloadModule().

#define MOD_ERR_NOUSER   5

Definition at line 77 of file modules.h.

#define MOD_ERR_OK   0

Definition at line 72 of file modules.h.

Referenced by addCommand(), addEventHandler(), addEventHook(), addMessage(), addModule(), AnopeInit(), delCommand(), delEventHandler(), delEventHook(), delMessage(), delModule(), destroyCommand(), destroyEventHandler(), destroyEventHook(), destroyMessage(), encryption_module_init(), handleModuleOperationQueue(), loadModule(), moduleAddCommand(), moduleAddData(), moduleCopyFile(), modules_core_init(), modules_delayed_init(), modules_init(), modules_unload_all(), protocol_module_init(), and unloadModule().

#define MOD_ERR_PARAMS   2

Definition at line 74 of file modules.h.

Referenced by addCommand(), addCoreCommand(), addCoreEventHandler(), addCoreEventHook(), addCoreMessage(), addEventHandler(), addEventHook(), addMessage(), delCommand(), delEventHandler(), delEventHook(), delMessage(), delModule(), destroyCommand(), destroyEventHandler(), destroyEventHook(), destroyMessage(), destroyModule(), loadModule(), moduleAddCommand(), moduleAddData(), moduleAddEventHandler(), moduleAddEventHook(), moduleAddMessage(), prepForUnload(), and unloadModule().

#define MOD_ERR_SYNTAX   8

Definition at line 80 of file modules.h.

#define MOD_ERR_UNKNOWN   10

Definition at line 82 of file modules.h.

Referenced by destroyCommand(), moduleAddCommand(), moduleAddEventHandler(), moduleAddEventHook(), moduleAddMessage(), moduleDelCommand(), moduleDelMessage(), moduleEventDelHandler(), moduleEventDelHook(), and unloadModule().

#define MOD_STOP   1

Definition at line 54 of file modules.h.

Referenced by anope_event_capab(), AnopeInit(), check_email_limit_reached(), do_list(), do_meow(), do_moo(), do_purr(), hs_moo_show(), loadModule(), mLoadConfig(), moduleAddAdminHelp(), moduleAddHelp(), moduleAddOperHelp(), moduleAddRegHelp(), moduleAddRootHelp(), my_cs_help_appendtopic(), my_cs_help_enforce(), and my_privmsg().

#define MODULE_EXT   ".so"

Definition at line 45 of file modules.h.

Referenced by loadModule(), and moduleCopyFile().

#define MODULE_HASH   Module_table

Definition at line 65 of file modules.h.

Referenced by addModule(), delModule(), do_modlist(), encryptionModuleLoaded(), findModule(), moduleDisplayHelp(), modules_unload_all(), and protocolModuleLoaded().

#define NICKSERV   NS_cmdTable

Definition at line 60 of file modules.h.

Referenced by AnopeInit(), do_modinfo(), moduleAddCommand(), and nickserv().

#define OPERSERV   OS_cmdTable

Definition at line 63 of file modules.h.

Referenced by AnopeInit(), do_modinfo(), moduleAddCommand(), moduleAddOperServCmds(), and operserv().


Typedef Documentation

typedef void* ano_module_t

Definition at line 33 of file modules.h.

typedef struct Command_ Command

Definition at line 106 of file modules.h.

typedef struct CommandHash_ CommandHash

Definition at line 107 of file modules.h.

typedef struct EvtHook_ EvtHook

Definition at line 117 of file modules.h.

typedef struct EvtHookHash_ EvtHookHash

Definition at line 118 of file modules.h.

typedef struct EvtMessage_ EvtMessage

Definition at line 115 of file modules.h.

typedef struct EvtMessageHash_ EvtMessageHash

Definition at line 116 of file modules.h.

typedef struct Message_ Message

Definition at line 112 of file modules.h.

typedef struct MessageHash_ MessageHash

Definition at line 113 of file modules.h.

typedef struct Module_ Module

Definition at line 108 of file modules.h.

typedef struct ModuleCallBack_ ModuleCallBack

Definition at line 114 of file modules.h.

typedef struct ModuleHash_ ModuleHash

Definition at line 110 of file modules.h.

typedef struct ModuleLang_ ModuleLang

Definition at line 109 of file modules.h.

typedef struct ModuleQueue_ ModuleQueue

Definition at line 111 of file modules.h.


Enumeration Type Documentation

enum MODType

Enumerator:
CORE 
PROTOCOL 
THIRD 
SUPPORTED 
QATESTED 
ENCRYPTION 

Definition at line 100 of file modules.h.

enum ModuleOperation

Enumerator:
MOD_OP_LOAD 
MOD_OP_UNLOAD 

Definition at line 101 of file modules.h.


Function Documentation

MDE int addCommand ( CommandHash cmdTable[],
Command c,
int  pos 
)

Add a command to a command table. only add if were unique, pos = 0; if we want it at the "head" of that command, pos = 1 at the tail, pos = 2

Parameters:
cmdTable the table to add the command to
c the command to add
pos the position in the cmd call stack to add the command
Returns:
MOD_ERR_OK will be returned on success.

Definition at line 1225 of file modules.c.

References alog(), CommandHash_::c, CMD_HASH, debug, mod_current_module_name, MOD_ERR_EXISTS, MOD_ERR_NO_MOD_NAME, MOD_ERR_OK, MOD_ERR_PARAMS, Command_::mod_name, Command_::name, CommandHash_::name, CommandHash_::next, Command_::next, Command_::service, and stricmp().

Referenced by addCoreCommand(), and moduleAddCommand().

MDE int addCoreCommand ( CommandHash cmdTable[],
Command c 
)

Add a CORE command ot the given command hash

Parameters:
cmdTable the command table to add the command to
c the command to add
Returns:
MOD_ERR_OK on success

Definition at line 993 of file modules.c.

References addCommand(), Command_::core, MOD_ERR_PARAMS, and Command_::next.

Referenced by moduleAddOperServCmds().

int addCoreEventHandler ( EvtMessageHash msgEvtTable[],
EvtMessage evm 
)

Add the given message (m) to the MessageHash marking it as a core command

Parameters:
msgTable the MessageHash we want to add to
m the Message we are adding
Returns:
MOD_ERR_OK on a successful add.

Definition at line 368 of file events.c.

References addEventHandler(), EvtMessage_::core, and MOD_ERR_PARAMS.

int addCoreEventHook ( EvtHookHash hookEvtTable[],
EvtHook evh 
)

Add the given message (m) to the MessageHash marking it as a core command

Parameters:
msgTable the MessageHash we want to add to
m the Message we are adding
Returns:
MOD_ERR_OK on a successful add.

Definition at line 475 of file events.c.

References addEventHook(), EvtHook_::core, and MOD_ERR_PARAMS.

MDE int addCoreMessage ( MessageHash msgTable[],
Message m 
)

Add the given message (m) to the MessageHash marking it as a core command

Parameters:
msgTable the MessageHash we want to add to
m the Message we are adding
Returns:
MOD_ERR_OK on a successful add.

Definition at line 1520 of file modules.c.

References addMessage(), Message_::core, and MOD_ERR_PARAMS.

Referenced by moduleAddIRCDMsgs(), and moduleAddMsgs().

int addEventHandler (