#include "module.h"
Go to the source code of this file.
Defines | |
| #define | AUTHOR "Anope" |
| #define | VERSION "1" |
| #define | DEFAULT_SETTING "moo" |
Functions | |
| int | mShowSetting (User *u) |
| int | mReadConfig (int argc, char **argv) |
| int | AnopeInit (int argc, char **argv) |
| void | AnopeFini (void) |
Variables | |
| char * | setting |
| #define DEFAULT_SETTING "moo" |
Default setting to be used if no confing value is found
Definition at line 9 of file hs_conf.c.
Referenced by mReadConfig().
| void AnopeFini | ( | void | ) |
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 16 of file hs_conf.c.
References c, createCommand(), createEventHook(), EVENT_RELOAD, HOSTSERV, MOD_CONT, MOD_ERR_OK, MOD_HEAD, MOD_STOP, moduleAddCommand(), moduleAddEventHook(), mReadConfig(), mShowSetting(), and setting.
| int mReadConfig | ( | int | argc, | |
| char ** | argv | |||
| ) |
Load the config setting up, this will be called whenever the EVENT_RELOAD event is recived.
Definition at line 57 of file hs_conf.c.
References DEFAULT_SETTING, MOD_CONT, moduleGetConfigDirective(), PARAM_RELOAD, PARAM_STRING, setting, and sstrdup().
Referenced by AnopeInit().
| int mShowSetting | ( | User * | u | ) |
Simple function to show the user the current config setting
Definition at line 48 of file hs_conf.c.
References MOD_CONT, user_::nick, notice(), s_HostServ, and setting.
Referenced by AnopeInit().
| char* setting |
Definition at line 14 of file hs_conf.c.
Referenced by AnopeFini(), AnopeInit(), mReadConfig(), and mShowSetting().
1.5.7.1