summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index dd336f6a..44ea13ce 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -223,12 +223,13 @@ do_send(char *userid, char *title)
char receiver[IDLEN + 1];
char genbuf[200];
int internet_mail, i;
+ userec_t xuser;
if (strchr(userid, '@'))
internet_mail = 1;
else {
internet_mail = 0;
- if (!getuser(userid))
+ if (!getuser(userid, &xuser))
return -1;
if (!(xuser.userlevel & PERM_READMAIL))
return -3;