clones.o: clones.c include/config.h include/define.h include/struct.h \
include/utils.h include/funcs.h
dyntfuncs.o: dyntfuncs.c include/define.h include/config.h \
- include/struct.h include/dyntrans.h include/utils.h
+ include/struct.h include/utils.h include/dyntrans.h
database.o: database.c include/config.h include/define.h \
include/struct.h include/utils.h include/funcs.h
efserv.o: efserv.c include/config.h include/define.h include/struct.h \
include/utils.h include/funcs.h
-log.o: log.c include/config.h include/define.h include/struct.h
+log.o: log.c include/config.h include/define.h include/struct.h \
+ include/utils.h
match.o: match.c
-md5.o: md5.c include/config.h include/define.h include/struct.h
+md5.o: md5.c include/config.h include/define.h include/struct.h \
+ include/utils.h
msg.o: msg.c include/config.h include/define.h include/struct.h \
include/utils.h include/funcs.h include/conf.h
utils.o: utils.c include/config.h include/define.h include/utils.h
# efserv Makefile.in
# DO NOT EDIT
#
-# $Id: Makefile.in,v 1.11 2002/01/03 04:56:01 wcampbel Exp $
+# $Id: Makefile.in,v 1.12 2002/04/15 17:44:31 wcampbel Exp $
#
# Don't edit these unless you know what you are doing
help.txt: help.txt.in makehelp.pl
perl makehelp.pl
-depend: lex.yy.c sconfig.tab.c dyntrans.tab.c
+lint:
+ lint -aacgprxhH ${DPATH} -Iinclude/ channels.c clients.c clones.c \
+ commands.c config.c database.c efserv.c log.c match.c md5.c \
+ modules.c msg.c utils.c > lint.out
+
+depend: sconfig.tab.c dyntrans.tab.c dyntrans.setup.c lex.yy.c
${CC} ${CFLAGS} -MM ${SRCS} dyntrans.tab.c >.depend
clean:
${RM} -f *.o *.so core efserv.core efserv lex.yy.c
${RM} -f sconfig.tab.* help.txt
+ ${RM} -f dyntrans dyntrans.setup.c dyntrans.ll.c dyntrans.tab.*
+ ${RM} -f dtheader.i
distclean: clean
${RM} -f Makefile config.status config.cache config.log
+++ /dev/null
-\ 39efserv\ 3 services facilitate in the smooth running of your IRC network.
-Much of efserv's functionality is automated. However, some commands can
-be given by IRC operators and administrators. Type
-\ 2/msg services <command> ...
-Note that you should always check that it is the real services before
-sending passwords or sensitive data to it.
-The following commands are available:
-- \ 2HELP\ 2 - Prints this message.
-- \ 2ADMIN <username> <password>\ 2 - Lets you log in as an administrator.
-- \ 2JUPE <server> <reason>\ 2 - Starts a call for votes to jupe.
-- \ 2JUPE <server> +\ 2 - Votes for a jupe.
-- \ 2JUPE <server> -\ 2 - Votes against a jupe.
-Note that a jupe should be regarded as a last resort, and should only
-be used in the following situations:
-1) Server is possibly compromised/hacked.
-2) O-lines are compromised, with no-one to D-line.
-3) Trouble with route which breaks the network, causing splits.
-Each server gets one, and only one, vote. Anyone on your server can change
-your vote once it is placed, although a global operator can not change a
-vote which was placed by an administrator.
-3 admin votes(the admin must have logged in with \ 2ADMIN\ 2, or 5 oper
-votes result in the activation/deactivation of a jupe.
-There are stringent policies in place for dealing with jupe abuse.
-For more information, see:
-\ 312https://voting.blackened.com/docs/services.int.shtml
-
-$Id: help.txt,v 1.1 2001/12/10 07:22:35 a1kmm Exp $
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA.
- * $Id: conf.h,v 1.2 2001/11/11 21:22:24 wcampbel Exp $
+ * $Id: conf.h,v 1.3 2002/04/15 17:44:34 wcampbel Exp $
*/
+#ifndef _CONF_H
+#define _CONF_H
+
extern struct yystype
{
unsigned long number;
ALEVEL_ADMIN,
ALEVEL_OPER,
ALEVEL_SERVADMIN,
- ALEVEL_ANY,
+ ALEVEL_ANY
};
+#endif
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA.
- * $Id: define.h,v 1.11 2001/12/10 07:04:50 a1kmm Exp $
+ * $Id: define.h,v 1.12 2002/04/15 17:44:34 wcampbel Exp $
*/
+#ifndef _DEFINE_H
+#define _DEFINE_H
+
/* The maximum number of clients per user@host */
#define MAXCLONES_UHOST 4
/* The maximum number of clients per host */
#define JEFLAG_AUTO 1
#define JEFLAG_MANUAL 2
+
+#endif
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA.
- * $Id: dyntrans.h,v 1.1 2001/12/10 07:04:50 a1kmm Exp $
+ * $Id: dyntrans.h,v 1.2 2002/04/15 17:44:34 wcampbel Exp $
*/
+#ifndef _DYNTRANS_H
+#define _DYNTRANS_H
+
struct StructType
{
unsigned long serno;
void SaveStructType(const char *name, struct StructType **to);
void RegisterStructInst(const char *name, const char *type, int isptr,
int nrep, void *data);
+
+#endif
+/* efserv funcs.h - Prototypes
+ * $Id: funcs.h,v 1.5 2002/04/15 17:44:34 wcampbel Exp $
+ */
+
+#ifndef _FUNCS_H
+#define _FUNCS_H
+
void process_smode(const char *chname, const char *mode);
void pick_a_hub(void);
int check_admin(struct User*, const char*, const char*);
int send_msg(char *msg, ...);
void log(const char *error, ...);
#endif
+
+#endif
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA.
- * $Id: struct.h,v 1.7 2001/12/10 07:04:50 a1kmm Exp $
+ * $Id: struct.h,v 1.8 2002/04/15 17:44:34 wcampbel Exp $
*/
#include "define.h"
+#include "utils.h"
+
+#ifndef _STRUCT_H
+#define _STRUCT_H
/* We don't need to translate this, as we reinstall the commands on reload. */
/*PNOTRANS*/
void *data);
void move_list(struct List **dest, struct List **src);
void remove_from_list(struct List **list, struct List *node);
+
+#endif
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA.
- * $Id: utils.h,v 1.2 2001/12/10 07:04:50 a1kmm Exp $
+ * $Id: utils.h,v 1.3 2002/04/15 17:44:34 wcampbel Exp $
*/
+#ifndef _UTILS_H
+#define _UTILS_H
+
enum
{
HASH_COMMAND,
HASH_SERVER,
HASH_USER,
HASH_CHAN,
- HASH_HOST,
+ HASH_HOST
};
struct HashEntry
#define find_user(name) (struct User*)find_in_hash(HASH_USER,name)
#define find_channel(name) (struct Channel*)find_in_hash(HASH_CHAN,name)
#define find_host(name) (struct Host*)find_in_hash(HASH_HOST,name)
+
+#endif
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA.
- * $Id: modules.c,v 1.8 2001/12/10 07:47:20 a1kmm Exp $
+ * $Id: modules.c,v 1.9 2002/04/15 17:44:31 wcampbel Exp $
*/
#define PATH PREFIX
#include <signal.h>
#include <time.h>
#include <unistd.h>
+#include "utils.h"
+#include "struct.h"
int reload_module = 0, die = 0;
int connected = 0, server_count = 0, minimum_servers = 0;