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