Add compat_sendemail() stub macro.

This commit is contained in:
William Pitcock 2012-10-04 05:16:14 +00:00
parent be594cab4e
commit fa8bededfe
2 changed files with 7 additions and 1 deletions

View File

@ -28,8 +28,14 @@
* of Atheme to compile a subset of the Atheme 7.1 API, if such API features * of Atheme to compile a subset of the Atheme 7.1 API, if such API features
* are unavailable. * are unavailable.
*/ */
#define compat_sendemail sendemail
#if CURRENT_ABI_REVISION < 710000 #if CURRENT_ABI_REVISION < 710000
typedef char *stringref; typedef char *stringref;
#undef compat_sendemail
#define compat_sendemail(user, myuser, type, email, content) \
sendemail(user, type, myuser, content)
#endif #endif
#endif #endif

View File

@ -138,7 +138,7 @@ static void ms_cmd_fsend(sourceinfo_t *si, int parc, char *parv[])
/* Should we email this? */ /* Should we email this? */
if (tmu->flags & MU_EMAILMEMOS) 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 /* Note: do not disclose other nicks they're logged in with