Anope IRC Services  Version 1.8
Macros | Functions | Variables
hs_conf.c File Reference
#include "module.h"
Include dependency graph for hs_conf.c:

Go to the source code of this file.


#define AUTHOR   "Anope"
#define VERSION   "1"
#define DEFAULT_SETTING   "moo"


int mShowSetting (User *u)
int mReadConfig (int argc, char **argv)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)


char * setting

Macro Definition Documentation

#define AUTHOR   "Anope"

Definition at line 3 of file hs_conf.c.

#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().

#define VERSION   "1"

Definition at line 4 of file hs_conf.c.

Function Documentation

void AnopeFini ( void  )

free the globals when we close

Definition at line 40 of file hs_conf.c.

References setting.

int AnopeInit ( int  argc,
char **  argv 
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().

Variable Documentation

char* setting

Definition at line 14 of file hs_conf.c.

Referenced by AnopeFini(), AnopeInit(), do_set(), mReadConfig(), and mShowSetting().