From 2b7fac8f0887e9013a497dcf4ed7a6232e4c8c46 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 13 Jul 2002 10:11:45 +0000 Subject: [PATCH] spamlog() now takes an action parameter (it's not always "REJECT"). --- src/sbbs3/logfile.cpp | 6 ++++-- src/sbbs3/sbbs.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/logfile.cpp b/src/sbbs3/logfile.cpp index 1ceabd5b43..39b9f76dbc 100644 --- a/src/sbbs3/logfile.cpp +++ b/src/sbbs3/logfile.cpp @@ -67,7 +67,8 @@ extern "C" BOOL DLLCALL hacklog(scfg_t* cfg, char* prot, char* user, char* text, return(TRUE); } -extern "C" BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* reason, char* host, char* ip_addr, char* to) +extern "C" BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* action, + char* reason, char* host, char* ip_addr, char* to) { char hdr[512]; char to_user[128]; @@ -86,8 +87,9 @@ extern "C" BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* reason, char* hos else sprintf(to_user,"to: %s",to); - sprintf(hdr,"SUSPECTED %s SPAM REJECTED on %.24s\r\nFrom: %s [%s] %s\r\nReason: " + sprintf(hdr,"SUSPECTED %s SPAM %s on %.24s\r\nFrom: %s [%s] %s\r\nReason: " ,prot + ,action ,timestr(cfg,&now,tstr) ,host ,ip_addr diff --git a/src/sbbs3/sbbs.h b/src/sbbs3/sbbs.h index 3f50265c02..2e21bddb2f 100644 --- a/src/sbbs3/sbbs.h +++ b/src/sbbs3/sbbs.h @@ -812,7 +812,7 @@ extern "C" { /* logfile.cpp */ DLLEXPORT BOOL DLLCALL hacklog(scfg_t* cfg, char* prot, char* user, char* text ,char* host, SOCKADDR_IN* addr); - DLLEXPORT BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* reason + DLLEXPORT BOOL DLLCALL spamlog(scfg_t* cfg, char* prot, char* action, char* reason ,char* host, char* ip_addr, char* to); DLLEXPORT char * DLLCALL remove_ctrl_a(char* instr, char* outstr); -- GitLab