Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 5accc69e authored by rswindell's avatar rswindell

Created new subject_crc() function that replaces the old remove_re() function.

parent 21a97670
......@@ -778,7 +778,7 @@ extern "C" {
DLLEXPORT ushort DLLCALL crc16(char *str);
DLLEXPORT BOOL DLLCALL validattr(char a);
DLLEXPORT size_t DLLCALL strip_invalid_attr(char *str);
DLLEXPORT ushort DLLCALL subject_crc(char *subj);
/* date_str.c */
DLLEXPORT char * DLLCALL zonestr(short zone);
......@@ -904,9 +904,6 @@ BOOL md(char *path);
int eprintf(char *fmt, ...); /* event log */
int lputs(char *); /* telnet log */
/* qwk.cpp */
void remove_re(char *str);
/* ver.cpp */
char* socklib_version(char* str);
......
......@@ -448,3 +448,18 @@ size_t DLLCALL strip_invalid_attr(char *strin)
strcpy(strin,str);
return(a);
}
ushort DLLCALL subject_crc(char *subj)
{
char str[512];
while(!strnicmp(subj,"RE:",3)) {
subj+=3;
while(*subj==SP)
subj++;
}
SAFECOPY(str,subj);
strlwr(str);
return(crc16(str));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment