2003-11-18 11:51:09 +00:00
|
|
|
/* NeoStats - IRC Statistical Services
|
2008-02-24 02:45:41 +00:00
|
|
|
** Copyright (c) 1999-2008 Adam Rutter, Justin Hammond, Mark Hetherington
|
2003-11-18 11:51:09 +00:00
|
|
|
** http://www.neostats.net/
|
|
|
|
**
|
|
|
|
** This program is free software; you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation; either version 2 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** This program is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with this program; if not, write to the Free Software
|
|
|
|
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
** USA
|
|
|
|
**
|
|
|
|
** NeoStats CVS Identification
|
|
|
|
** $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SERVICES_H_
|
|
|
|
#define _SERVICES_H_
|
|
|
|
|
2004-05-14 17:43:49 +00:00
|
|
|
typedef struct neoroot {
|
|
|
|
char nick[MAXNICK];
|
|
|
|
char user[MAXUSER];
|
|
|
|
char host[MAXHOST];
|
2005-07-09 22:55:20 +00:00
|
|
|
}neoroot;
|
2004-05-14 17:43:49 +00:00
|
|
|
|
|
|
|
/* general configuration items */
|
2004-09-01 19:22:16 +00:00
|
|
|
typedef struct config {
|
2004-05-14 17:43:49 +00:00
|
|
|
/* log level */
|
2005-11-15 20:06:09 +00:00
|
|
|
NS_LOG_LEVEL loglevel;
|
2004-05-14 17:43:49 +00:00
|
|
|
/* debug level */
|
2005-11-15 20:06:09 +00:00
|
|
|
NS_DEBUG_LEVEL debuglevel;
|
2004-05-14 17:43:49 +00:00
|
|
|
/* dont load modules on startup */
|
|
|
|
unsigned int modnoload:1;
|
|
|
|
/* dont output anything on start */
|
|
|
|
unsigned int quiet:1;
|
|
|
|
/* dont detach into background */
|
|
|
|
unsigned int foreground:1;
|
|
|
|
unsigned int want_privmsg:1;
|
|
|
|
unsigned int onlyopers:1;
|
2005-07-16 21:33:50 +00:00
|
|
|
time_t setservertimes;
|
|
|
|
time_t splittime;
|
|
|
|
time_t msgsampletime;
|
2005-03-29 23:41:20 +00:00
|
|
|
unsigned int msgthreshold;
|
|
|
|
unsigned int r_time;
|
2004-05-14 17:43:49 +00:00
|
|
|
char pass[MAXPASS];
|
|
|
|
unsigned int debug;
|
2005-03-29 23:41:20 +00:00
|
|
|
unsigned int debugtochan;
|
2004-07-05 19:35:58 +00:00
|
|
|
char debugchan[MAXCHANLEN];
|
2005-07-16 21:33:50 +00:00
|
|
|
time_t pingtime;
|
2005-03-29 23:41:20 +00:00
|
|
|
unsigned int joinserviceschan;
|
2004-05-14 17:43:49 +00:00
|
|
|
neoroot rootuser;
|
|
|
|
char debugmodule[MAX_MOD_NAME];
|
2004-06-12 18:24:30 +00:00
|
|
|
unsigned int singlebotmode;
|
2004-08-17 21:23:45 +00:00
|
|
|
unsigned int cmdreport;
|
2004-09-01 19:22:16 +00:00
|
|
|
unsigned int unauthreport;
|
2004-08-12 21:43:01 +00:00
|
|
|
unsigned char cmdchar[2];
|
2007-08-31 06:08:34 +00:00
|
|
|
unsigned int sendhelp;
|
|
|
|
unsigned int allhelp;
|
2005-03-18 12:29:37 +00:00
|
|
|
size_t recvq;
|
2004-09-01 19:22:16 +00:00
|
|
|
} config;
|
2004-07-05 19:35:58 +00:00
|
|
|
|
2008-03-03 06:29:31 +00:00
|
|
|
EXPORTVAR extern config nsconfig;
|
2004-05-14 17:43:49 +00:00
|
|
|
|
2004-04-14 20:39:36 +00:00
|
|
|
extern ModuleInfo ns_module_info;
|
2004-04-18 22:28:02 +00:00
|
|
|
extern Module ns_module;
|
2005-12-07 23:56:01 +00:00
|
|
|
EXPORTVAR extern Bot *ns_botptr;
|
2003-11-18 11:51:09 +00:00
|
|
|
|
2004-10-26 21:01:28 +00:00
|
|
|
void InitServices( void );
|
2005-03-04 21:31:24 +00:00
|
|
|
void FiniServices( void );
|
2004-10-26 21:01:28 +00:00
|
|
|
int init_services_bot( void );
|
2004-05-14 17:43:49 +00:00
|
|
|
|
2003-11-18 11:51:09 +00:00
|
|
|
#endif /* _SERVICES_H_ */
|