diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-05 19:58:27 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-05 19:58:27 +0800 |
commit | 6308dc81fbc5cc89f450e7beadc2cf710c0696e9 (patch) | |
tree | 6af6280b57bcaf1fc79c88a142b61b99fccd2efe /innbbsd/nocem.h | |
parent | 38c21379a1c34bcea53157c381044f05e3637727 (diff) | |
download | pttbbs-6308dc81fbc5cc89f450e7beadc2cf710c0696e9.tar pttbbs-6308dc81fbc5cc89f450e7beadc2cf710c0696e9.tar.gz pttbbs-6308dc81fbc5cc89f450e7beadc2cf710c0696e9.tar.bz2 pttbbs-6308dc81fbc5cc89f450e7beadc2cf710c0696e9.tar.lz pttbbs-6308dc81fbc5cc89f450e7beadc2cf710c0696e9.tar.xz pttbbs-6308dc81fbc5cc89f450e7beadc2cf710c0696e9.tar.zst pttbbs-6308dc81fbc5cc89f450e7beadc2cf710c0696e9.zip |
import NoCeM into innbbsd/.
see http://nocem-innbbsd.sourceforge.net/ for details.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2312 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/nocem.h')
-rw-r--r-- | innbbsd/nocem.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/innbbsd/nocem.h b/innbbsd/nocem.h new file mode 100644 index 00000000..40f3271d --- /dev/null +++ b/innbbsd/nocem.h @@ -0,0 +1,61 @@ +/* + NoCeM-INNBBSD + Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw> +*/ + +#ifndef NOCEM_H +#define NOCEM_H + +#include "innbbsconf.h" +#include "bbslib.h" +#include "inntobbs.h" + +#include <stdarg.h> /* for va_start() problem */ + +typedef struct ncmperm_t +{ + char *issuer; + char *type; + int perm; +} ncmperm_t; + +ncmperm_t *NCMPERM=NULL, **NCMPERM_BYTYPE=NULL; +static char *NCMPERM_BUF; +int NCMCOUNT = 0; + +#define TEXT 0 +#define NCMHDR 1 +#define NCMBDY 2 + +#define NOPGP -1 +#define PGPGOOD 0 +#define PGPBAD 1 +#define PGPUN 2 + +#define P_OKAY 0 +#define P_FAIL -1 +#define P_UNKNOWN -2 +#define P_DISALLOW -3 + +#define STRLEN 80 +#define MAXSPAMMID 10000 +#define LINELEN 512 + +#define LeeymBBS "bbs.civil.ncku.edu.tw" +#define LeeymEMAIL "leeym@cae.ce.ntu.edu.tw" +#define NCMINNBBSVER "NoCeM-INNBBSD-0.71" + +#undef DONT_REGISTER + +extern char NCMVER[]; +extern char ISSUER[]; +extern char TYPE[]; +extern char ACTION[]; +extern char NCMID[]; +extern char COUNT[]; +extern char THRESHOLD[]; +extern char KEYID[]; +extern char SPAMMID_NOW[]; +extern char SPAMMID[][]; + +#endif /* NOCEM_H */ |