From 2230c0a8c5a4eb2397673d37e709454195c5e284 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 28 Aug 2009 13:57:40 +0000 Subject: * moving into the new pwcu (password - current user helper) API git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4783 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mbbsd/cal.c') diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 2e3b441a..342049b8 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -84,10 +84,7 @@ vice(int money, const char *item) static int inmailbox(int m) { - userec_t xuser; - passwd_sync_query(usernum, &xuser); - cuser.exmailbox = xuser.exmailbox + m; - passwd_sync_update(usernum, &cuser); + pwcuAddExMailBox(m); return cuser.exmailbox; } -- cgit v1.2.3 From e40b5f174956a652514959e367df348c0ad66d9f Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 29 Aug 2009 12:59:17 +0000 Subject: * enable lastseen and CONST_CUSER, also use cuser_ref as "&cuser". git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4786 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd/cal.c') diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 342049b8..c920aeb1 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -402,7 +402,7 @@ resolve_over18_user(const userec_t *u) void resolve_over18(void) { - over18 = resolve_over18_user(&cuser); + over18 = resolve_over18_user(cuser_ref); } int -- cgit v1.2.3