diff --git a/.gitattributes b/.gitattributes index 8af22161..5d13dea2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -553,6 +553,7 @@ src/nsevents.c -text src/typemap -text src/win32/icon1.ico -text src/win32/neostats.bmp -text +src/win32/neostats.conf -text src/win32/neostats.rc -text src/win32/resource.h -text src/win32/winmain.c -text diff --git a/Makefile.in b/Makefile.in index 4de1a2ff..1248b1d0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -254,7 +254,7 @@ neodir = $(prefix) neo_SCRIPTS = neostats DISTCLEANFILES = autotools/ccdv EXTRA_DIST = autotools/ccdv.c CREDITS INSTNOTES RELNOTES autotools/shtool -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/autotools/rules.mk b/autotools/rules.mk index 42a9980d..54298682 100644 --- a/autotools/rules.mk +++ b/autotools/rules.mk @@ -1,4 +1,4 @@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ .c.o: diff --git a/include/Makefile.in b/include/Makefile.in index bde19c1f..419de10a 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -230,7 +230,7 @@ noinst_HEADERS = commands.h dns.h servers.h users.h conf.h \ adnsdlist.h adnsinternal.h adnstvarith.h namedvars-core.h extra_DIST = version.h -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/lib/Makefile.in b/lib/Makefile.in index bdd31b82..ff577e74 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -209,7 +209,7 @@ target_alias = @target_alias@ unamepath = @unamepath@ wi_PWD = @wi_PWD@ SUBDIRS = pcre curl event nxml -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/lib/curl/Makefile.in b/lib/curl/Makefile.in index e1a2809c..0ab294d7 100644 --- a/lib/curl/Makefile.in +++ b/lib/curl/Makefile.in @@ -312,7 +312,7 @@ noinst_HEADERS = arpa_telnet.h netrc.h file.h timeval.h base64.h hostip.h \ include_HEADERS = curl.h curlver.h easy.h multi.h mprintf.h BUILT_SOURCES = $(srcdir)/ca-bundle.h -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/lib/event/Makefile.in b/lib/event/Makefile.in index bbcf52e2..6a78c8e9 100644 --- a/lib/event/Makefile.in +++ b/lib/event/Makefile.in @@ -241,7 +241,7 @@ EXTRA_DIST = err.c \ WIN32-Prj/libevent.dsp \ WIN32-Prj/libevent.dsw -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/lib/nxml/Makefile.in b/lib/nxml/Makefile.in index 8c7ee223..38242330 100644 --- a/lib/nxml/Makefile.in +++ b/lib/nxml/Makefile.in @@ -240,7 +240,7 @@ include_HEADERS = nxml.h mrss.h noinst_HEADERS = nxml_internal.h mrss_internal.h INCLUDES = -I$(top_srcdir)/lib/curl/ EXTRA_DIST = -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/lib/pcre/Makefile.in b/lib/pcre/Makefile.in index 4111414f..8ce05a74 100644 --- a/lib/pcre/Makefile.in +++ b/lib/pcre/Makefile.in @@ -240,7 +240,7 @@ dftables_DEPENDENCES = maketables.c noinst_HEADERS = maketables.c include_HEADERS = pcre.h AM_CFLAGS = @PCRE_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/Makefile.in b/modules/Makefile.in index 09d0fe19..a359e364 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -210,7 +210,7 @@ unamepath = @unamepath@ wi_PWD = @wi_PWD@ SUBDIRS = dbm protocol @MODULES@ EXTRA_DIST = modules.txt -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/connectserv/Makefile.in b/modules/connectserv/Makefile.in index a8ce7a7a..f5b1b2a1 100644 --- a/modules/connectserv/Makefile.in +++ b/modules/connectserv/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = connectserv.la connectserv_la_SOURCES = cs.c cs.h cs_help.c connectserv_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/dbm/Makefile.in b/modules/dbm/Makefile.in index ac3900f6..3ae2df3e 100644 --- a/modules/dbm/Makefile.in +++ b/modules/dbm/Makefile.in @@ -231,7 +231,7 @@ SUBDIRS = bdb gdbm convertdb_SOURCES = convertdb.c ../../src/dl.c ../../src/hash.c ../../src/list.c ../../src/ircstring.c ../../src/nsmemory.c ../../src/osfile.c ../../src/support.c convertdb_LDFLAGS = --export-dynamic @RDYNAMIC_FLAG@ AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/dbm/bdb/Makefile.in b/modules/dbm/bdb/Makefile.in index 58597c5d..f1160738 100644 --- a/modules/dbm/bdb/Makefile.in +++ b/modules/dbm/bdb/Makefile.in @@ -228,7 +228,7 @@ bdb_la_SOURCES = bdb.c bdb_la_LIBADD = @BDB_LIBS@ AM_LDFLAGS = -module -avoid-version @BDB_LDFLAGS@ AM_CFLAGS = -I$(top_srcdir)/include @BDB_CPPFLAGS@ @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/dbm/gdbm/Makefile.in b/modules/dbm/gdbm/Makefile.in index e9631f33..fa4bc3ac 100644 --- a/modules/dbm/gdbm/Makefile.in +++ b/modules/dbm/gdbm/Makefile.in @@ -241,7 +241,7 @@ noinst_HEADERS = extern.h gdbmerrno.h systems.h gdbmconst.h getopt.h gdbmdefs.h AM_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/adns/ @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/dccpartyline/Makefile.in b/modules/dccpartyline/Makefile.in index e743f2a5..8c8aea86 100644 --- a/modules/dccpartyline/Makefile.in +++ b/modules/dccpartyline/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = dccpartyline.la dccpartyline_la_SOURCES = main.c dccpartyline_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/extauth/Makefile.in b/modules/extauth/Makefile.in index 950a5861..c23790a7 100644 --- a/modules/extauth/Makefile.in +++ b/modules/extauth/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = extauth.la extauth_la_SOURCES = extauth.c extauth_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/hostserv/Makefile.in b/modules/hostserv/Makefile.in index 7ba15b10..7bc1cfa3 100644 --- a/modules/hostserv/Makefile.in +++ b/modules/hostserv/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = hostserv.la hostserv_la_SOURCES = hostserv.c hostserv.h hs_help.c hostserv_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/ircdauth/Makefile.in b/modules/ircdauth/Makefile.in index 01ab56a9..bb929c32 100644 --- a/modules/ircdauth/Makefile.in +++ b/modules/ircdauth/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = ircdauth.la ircdauth_la_SOURCES = ircdauth.c ircdauth_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/limitserv/Makefile.in b/modules/limitserv/Makefile.in index c7d98e42..03e2bb23 100644 --- a/modules/limitserv/Makefile.in +++ b/modules/limitserv/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = limitserv.la limitserv_la_SOURCES = main.c limitserv.h help.c limitserv_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/operlog/Makefile.in b/modules/operlog/Makefile.in index 14ff5945..6992c62f 100644 --- a/modules/operlog/Makefile.in +++ b/modules/operlog/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = operlog.la operlog_la_SOURCES = main.c help.c operlog.h operlog_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/perltest/Makefile.in b/modules/perltest/Makefile.in index 2bc2e30a..314d634f 100644 --- a/modules/perltest/Makefile.in +++ b/modules/perltest/Makefile.in @@ -230,7 +230,7 @@ wi_PWD = @wi_PWD@ @DO_PERL_TRUE@perlexttest_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ @PERL_CFLAGS@ extra_DIST = extension.ple test.pl -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/protocol/Makefile.in b/modules/protocol/Makefile.in index 749d6ee3..c89ce38e 100755 --- a/modules/protocol/Makefile.in +++ b/modules/protocol/Makefile.in @@ -299,7 +299,7 @@ unreal31_la_SOURCES = unreal31.c unreal32_la_SOURCES = unreal32.c AM_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/quoteserv/Makefile.in b/modules/quoteserv/Makefile.in index 29dc54bd..c1e398f9 100644 --- a/modules/quoteserv/Makefile.in +++ b/modules/quoteserv/Makefile.in @@ -231,7 +231,7 @@ quoteserv_la_SOURCES = main.c quoteserv.h help.c quoteserv_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ dist_data_DATA = data/discworld data/redneck -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/statserv/Makefile.in b/modules/statserv/Makefile.in index df64066a..c2037198 100644 --- a/modules/statserv/Makefile.in +++ b/modules/statserv/Makefile.in @@ -244,7 +244,7 @@ AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -I$(top_srcdir)/ -DSYSCONFDIR=\"$(sysconfdir)\" dist_data_DATA = GeoIP.dat html/index.tpl -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/template/Makefile.in b/modules/template/Makefile.in index cec87728..3cc45b15 100644 --- a/modules/template/Makefile.in +++ b/modules/template/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = template.la template_la_SOURCES = main.c template_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/templateauth/Makefile.in b/modules/templateauth/Makefile.in index ea6e6df2..9c6eb772 100644 --- a/modules/templateauth/Makefile.in +++ b/modules/templateauth/Makefile.in @@ -227,7 +227,7 @@ pkglib_LTLIBRARIES = templateauth.la templateauth_la_SOURCES = main.c templateauth_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/modules/textserv/Makefile.in b/modules/textserv/Makefile.in index 73ef5acc..134ed4a5 100644 --- a/modules/textserv/Makefile.in +++ b/modules/textserv/Makefile.in @@ -232,7 +232,7 @@ textserv_la_LDFLAGS = -module -avoid-version AM_CFLAGS = -I$(top_srcdir)/include @PCRE_CFLAGS@ @CURL_CFLAGS@ tsdbdir = $(datadir)/TSDB/ dist_tsdb_DATA = data/barmaid data/icecream data/loveserv data/moraleserv data/waitress -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/src/Makefile.in b/src/Makefile.in index 765874cb..25b7eba8 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -279,7 +279,7 @@ BUILT_SOURCES = NV.c CLEANFILES = NV.c neostats_LDFLAGS = --export-dynamic @RDYNAMIC_FLAG@ noinst_HEADERS = confuselexer.l NeoStats.pm -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +LINK = $(CCDV) $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ distdir = @DISTDIRVERSION@ diff --git a/src/NV.xs b/src/NV.xs index e1728478..ebe743c1 100644 --- a/src/NV.xs +++ b/src/NV.xs @@ -122,12 +122,6 @@ PPCODE: #CODE: #printf("DESTROY\n"); -#void -#FETCH(self) -# SV *self; -#CODE: -#printf("FETCH\n"); - MODULE = NeoStats::NV PACKAGE = NeoStats::NV::HashVars #/* get a individual entry. self points to what we set with sv_magic in @@ -184,35 +178,6 @@ OUTPUT: RETVAL -#/* store a update. should check if its RO or RW though */ - -void -STORE(self, key, value) - SV *self; - SV *key; - HV *value; -PREINIT: - HV *hash; - char *k; - STRLEN klen; - MAGIC *mg; - nv_list *nv; -CODE: - /* find our magic */ - hash = (HV*)SvRV(self); - mg = mg_find(SvRV(self),'~'); - if(!mg) { croak("lost ~ magic"); } - /* this is the nv_hash we are point at */ - nv = (nv_list *)SvIV(mg->mg_obj); - /* make sure its a hash, not a list */ - if (nv->type == NV_TYPE_HASH) { - nlog(LOG_WARNING, "NamedVars is not a hash?!?!"); - } else if (nv->type == NV_TYPE_LIST) { - k = SvPV(key, klen); - perl_store_namedvars(nv, k, value); - } - - # /* check if a entry is in the hash */ bool @@ -334,56 +299,3 @@ OUTPUT: #/* delete a entry */ -HV* -DELETE(self, key) - SV *self; - SV *key; -PREINIT: - HV *hash; - MAGIC *mg; - nv_list *nv; - void *data; - char *k; - STRLEN klen; -CODE: - hash = (HV*)SvRV(self); - mg = mg_find(SvRV(self),'~'); - if(!mg) { croak("lost ~ magic"); } - nv = (nv_list *)SvIV(mg->mg_obj); - /* make sure its a hash, not a list */ - if (nv->type != NV_TYPE_HASH) { - nlog(LOG_WARNING, "Del: NamedVars is not a hash?!?!"); - RETVAL = (HV *)-1; - } else { - /* get the "key" they want */ - k = SvPV(key, klen); - /* search for the key */ - data = hnode_find((hash_t *)nv->data, k); - if (!data) { - RETVAL = (HV *)-1; - } else { - if (perl_candelete_namedvars(nv, k)) { - RETVAL = (HV *)perl_encode_namedvars(nv, data); - perl_delete_namedvars(nv, k); - } else { - RETVAL = (HV *)-1; - } - } - } -POSTCALL: - RETURN_UNDEF_IF_FAIL; -OUTPUT: - RETVAL - -#/* clear the hash */ - -void -CLEAR(self) - SV *self; -PREINIT: - HV *hash; -CODE: -printf("CLEAR\n"); - hash = (HV*)SvRV(self); - croak("CLEAR function is not implemented"); - diff --git a/src/win32/neostats.conf b/src/win32/neostats.conf new file mode 100755 index 00000000..c7028bb1 --- /dev/null +++ b/src/win32/neostats.conf @@ -0,0 +1,402 @@ +################################################## +## Configuration file for NeoStats +## Created: Wed, Aug 1 2007 - 20:57:51 SGT +## NeoStats Copyright (c) 1999-2007, Adam Rutter, Justin Hammond, Mark Hetherington +## Web: http://www.NeoStats.Net +## File Revision: 3.0 +################################################## + +################################################## +#Each of the options has an indicator as follows: +# [REQUIRED] - must be set or NeoStats will not run. +# [RECOMMENDED] - optional but may cause problems if not set. +# [OPTIONAL] - optional and the feature will be disabled if not set. +# [DISCOURAGED] - may cause undesirable side effects if enabled. +################################################## + +################################# +# NeoStats Server Configuration # +################################# + +ServerConfig { +# NAME = "" [REQUIRED] +# Specifies the name of the NeoStats Server as it will appear on +# the network. e.g. +# +# SERVER_NAME = "stats.neostats.net" +# +# When NeoStats links, it will appear as stats.neostats.net. + Name = "stats.somenet.net" + +# INFO = "" [REQUIRED] +# Specify the description of the server that +# appears when you do /links e.g. +# +# INFO "Network Auxiliary Services" + Info = "NeoStats 3.0 IRC Services" + +# SERVICECHANNEL="#" [REQUIRED] +# Specify the channel that all bots on NeoStats +# will automatically join, and echo out any +# important information e.g. +# +# SERVICECHANNEL="#services" +# +# Makes NeoStats, and all the other bots join #services channel on +# start-up/load. + ServiceChannel = "#services" + +# SERVER_NUMERIC = [RECOMMENDED] +# Specify the numeric of the server to send on connect. +# This must be a value between 1 and 254, and must not be in use by +# any other IRC server on the network. +# +# SERVER_NUMERIC = 1 + ServerNumeric = 1 + +# BINDTO = [OPTIONAL] +# Make NeoStats bind to a particular IP Address. If not +# specified NeoStats will attempt to find this address +# itself. e.g. +# +# BINDTO 203.203.123.12 +# +# All outgoing connections from NeoStats will originate from this +# IP address +# This IP address should not be localhost (127.0.0.1) + BindTo = "127.0.0.1 <- CHANGETHIS!!" + +# PROTOCOL = "" [REQUIRED] +# Specifies the protocol module to use. +# Valid protocol options are: +# unreal31 unreal32 ultimate2 ultimate3 +# hybrid7 bahamut14 bahamut18 plexus +# ircup10 asuka nefarious +# client +# +# PROTOCOL = "unreal32" +# + Protocol = "unreal32" +} + +################################# +# NeoStats Option Configuration # +################################# + + +Options { +# RECONNECTTIME = [RECOMMENDED] +# If NeoStats server gets split from the network, how long to wait +# before attempting to reconnect to the network. A value of 0 will +# cause NeoStats to shutdown and not attempt to reconnect. e.g. +# +# RECONNECTTIME = 10 +# +# Specifies wait 10 seconds before trying to reconnect +# +# RECONNECT_TIME = 0 +# +# Tells NeoStats to never reconnect to the network +# +# If not specified, NeoStats will default to 10 seconds. + ReconnectTime = 10 + +# USEPRIVMSG = [DISCOURAGED] +# Specify if the bots should send all messages as privmsgs or as +# notices (Most Services use notice) e.g. +# +# USEPRIVMSG true +# +# If present or set to true, will send all messages as privmsgs (if commented out, +# it will send as Notices) *NOTE:* This option Violates IRC RFC, and +# can cause flooding problems on your network. Its NOT recommended. + UsePrivmsg = false + +# OPERONLY = [OPTIONAL] +# Restrict NeoStats and StatServ to opers use only. +# If not specified, users will have some access to NeoStats +# and StatServ commands. e.g. +# +# OPERONLY=true +# +# Only opers may use NeoStats and StatServ. + OperOnly = false + +# SERVERSETTIME= [OPTIONAL] +# Cause NeoStats to sync server times at the given interval +# INTERVAL is an integer representing the number of hours +# +# Examples +# +# SERVERSETTIME=24 +# +# Cause NeoStats to sync server times every 24 hours +# If not present, NeoStats will not sync times. +# This option only works on servers that support this and +# defaults to a sync interval of 24 hours. Enabling this +# option will also cause NeoStats to sync servers when it +# first joins the network. + ServerSettime = 24 + +# DatabaseType = "" [OPTIONAL] +# Specifies the database manager module to use. +# NeoStats will default to GDBM if this is not provided. +# Valid options are: +# gdbm +# +# DatabaseType = "gdbm" +# +# + DatabaseType = "gdbm" + +# LOGFILENAMEFORMAT = "" [OPTIONAL] +# Defines the format for dated log files. This allows you to choose +# what date format is used for log file names when they are rotated at +# midnight. The option uses the parameters passed to strftime so you +# can use any options valid for that function. Common ones are: +# %a Abbreviated weekday name +# %A Full weekday name +# %b Abbreviated month name +# %B Full month name +# %d Day of month as decimal number (01 – 31) +# %m Month as decimal number (01 – 12) +# %y Year without century, as decimal number (00 – 99) +# %Y Year with century, as decimal number +# +# Examples using 30 September 2003 as the date: +# For NeoStats0930.log: +# +# LOGFILENAMEFORMAT="%m%d" +# +# For NeoStats20030930.log: +# +# LOGFILENAMEFORMAT="%Y%m%d" +# +# If not defined, the default is the original NeoStats log format of +# "-%m-%d" i.e. NeoStats-09-30.log + #LogFileNameFormat = "-%m-%d" + +# ROOTNICK = "" [REQUIRED] +# Specifies the nick of the NeoStats root bot +# e.g. +# +# ROOTNICK="NeoStats" +# +# When NeoStats links, it create a root bot with nick NeoStats + RootNick = "NeoStats" + +# SERVICESHOST = "" [REQUIRED] +# Specifies the default host of NeoStats service bots +# e.g. +# +# SERVICEHOST="stats.net" +# +# Service bots will now we user@stats.net +# If not specified NeoStats will default to the server name + ServicesHost = "stats.net" + +# NOLOAD = true [YOU MUST REMOVE THIS] +# If this is in the neostats.conf your NeoStats WILL NOT START UP. To +# disable this simply comment this line out. e.g. +# +# NOLOAD = true <- NeoStats will not load. +# +# #NOLOAD = true <- NeoStats will load. +# +# NOLOAD = false <- Neostats will load. + NOLOAD = true +} + +################################## +# NeoStats Linking Configuration # +################################## + +# This section defines the Server that NeoStats will +# attempt to link to. You must configure this server +# with the correct C/N and U lines for Neostats + +Servers { + +# IPADDRESS ="" [REQUIRED] +# Specifies the IP address to connect to. e.g. +# +# IPADDRESS="127.0.0.1" +# +# This will force stats to connect to 127.0.0.1 + IpAddress = "127.0.0.1" + +# PORT = [REQUIRED] +# Specifies the port to connect to on the IRC Server e.g. +# +# PORT=6667 +# +# When connecting, NeoStats will connect to port 6667 + Port = 6667 + +# PASSWORD="" [REQUIRED] +# Specifies the password used to connect. This must match your C/N +# lines in your IRCD configuration e.g. +# +# PASSWORD="linkpass" +# +# Send "linkpass" as the password to connect + Password = "linkpassword" +} + + +######################################## +# NeoStats Administrator Configuration # +######################################## + + +ServiceRoot { +#MASK="" [REQUIRED] +# Who should get master access to manage NeoStats regardless of +# authentication systems. Only one entry allowed. e.g. +# +# MASK="fish!?Fish@*.neostats.net" +# +# Will give "fish" complete access to NeoStats if fish has +# umode +r and comes from the specified hostname and ident. + #Mask = "ircop!*@*" +} + + +################################# +# NeoStats Module Configuration # +################################# + +Modules { +##################################### +# Module Configurations and Loading # +##################################### + +# MODULENAME = {"", "", ""} [OPTIONAL] +# What modules to load at start-up. e.g. +# +# MODULENAME = { "statserv" } +# +# Will load up StatServ only at boot +# +# To specify NeoStats to load multiple modules, place a comma after +# each module and specify the next one e.g. +# +# MODULENAME = { "statserv", "extauth" } +# +# will load up both statserv and extauth modules +# +# We have provided example lines for convenience for +# official modules but you must download and install +# external modules before trying to load them. + +MODULENAME = { + +# StatServ, maintain and report various networks statistics +# "statserv", + +# HostServ, vhost services for users +# "hostserv", + +# TextServ, text messaging service +# "textserv", + +# ConnectServ, monitor connections to the network: user connections, oper +# modes, server connections and nick changes. +# "connectserv", + +# Operlog, operator command logging service +# "operlog", + +# IRCdauth, authenticate users based on their user modes. +# "ircdauth", + +# Extauth, authenticate users based on nick!user@host access lists +# "extauth", + +# QuoteServ, Quote Message Service +# "quoteserv", + +# LimitServ, Channel Limit Setting Service +# "limitserv", + +# SecureServ. You must download and install SecureServ first. +# "secureserv", + +# BLSB. You must download and install BLSB first. +# "blsb", + +# OPSB. You must download and install OPSB first. +# "opsb", + +# LogServ. You must download and install LogServ first. +# "logserv", + +# TriviaServ. You must download and install TriviaServ first. +# "triviaserv", + +# WarServ. You must download and install WarServ first. +# "warserv", + +# GamesServ. You must download and install GameServ first. +# "gamesserv", + +# YahzteeServ. You must download and install YahzteeServ first. +# "yahtzeeserv", + +# FloodServ. You must download and install FloodServ first. +# "floodserv", + +# SeenServ. You must download and install SeenServ first. +# "seenserv", + +# ProfileServ. You must download and install ProfileServ first. +# "profileserv", + +} +} + +##################################### +# NeoNetConfigurations and Loading # +##################################### + +# NeoNet is a protocol that links all NeoStats installations back to the main +# NeoStats sites, such as http://secure.irc-chat.net etc. +# This allows you to take advantage of some of the aditional features or modules +# that we support, such as updated definitions for SecureServ accounts, or +# reporting options for OPSB. + +# You must visit http://accounts.neostats.net/ to create your NeoNet account +# and select what aditional options you would like. (some might require 3rd +# party modules, such as SecureServ or OPSB). + +# If you have been using SecureServ on the 2.5 series, please visit +# http://accounts.neostats.net/migrate/ for information on how to +# use your existing Secure.irc-chat.net account with NeoNet. +NeoNet { + +# This is the username, as supplied on the NeoNet pages. +# It should be your IRC Network user account and not your +# personal accounts. +# UserName = "somenet" + +# This is your IRC Network User account password. +# PassWord = "password" + +# Leave the port at 2960 unless otherwise instructed. +# Port = 2960 + +# This option handles how NeoNet connections are established. The available +# options are: +# yes - Connect to NeoNet during startup +# no - Never connect to NeoNet (Note, some features might not work if Connect +# is set to No +# demand - Only connect to NeoNet when there is a pending NeoNet Message +# to be sent. + Connect = "no" +} + +############################################################################### +## End of Configuration ## +############################################################################### + +