Add compat_sendemail() stub macro.
This commit is contained in:
parent
be594cab4e
commit
fa8bededfe
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue