From fa8bededfeceeb85905d624679dbd9bbeb836867 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 4 Oct 2012 05:16:14 +0000 Subject: [PATCH] Add compat_sendemail() stub macro. --- atheme-compat.h | 6 ++++++ ms_fsend.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/atheme-compat.h b/atheme-compat.h index 567745d..9e9c4e5 100644 --- a/atheme-compat.h +++ b/atheme-compat.h @@ -28,8 +28,14 @@ * of Atheme to compile a subset of the Atheme 7.1 API, if such API features * are unavailable. */ +#define compat_sendemail sendemail + #if CURRENT_ABI_REVISION < 710000 typedef char *stringref; + +#undef compat_sendemail +#define compat_sendemail(user, myuser, type, email, content) \ + sendemail(user, type, myuser, content) #endif #endif diff --git a/ms_fsend.c b/ms_fsend.c index a7a7cf8..b9a508e 100644 --- a/ms_fsend.c +++ b/ms_fsend.c @@ -138,7 +138,7 @@ static void ms_cmd_fsend(sourceinfo_t *si, int parc, char *parv[]) /* Should we email this? */ if (tmu->flags & MU_EMAILMEMOS) { - sendemail(si->su, tmu, EMAIL_MEMO, tmu->email, memo->text); + compat_sendemail(si->su, tmu, EMAIL_MEMO, tmu->email, memo->text); } /* Note: do not disclose other nicks they're logged in with