summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-27 23:50:20 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-27 23:50:20 +0800
commit1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95 (patch)
tree95c9fbe94ccd9f50a0f09732b577ff455149dd66 /mbbsd/user.c
parentf793f25ce60f90f2413546a170203bcc5403e77e (diff)
downloadpttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.gz
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.bz2
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.lz
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.xz
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.zst
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.zip
for mbbsd.icc
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@128 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 2e2e3401..55719a4a 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.13 2002/04/05 18:49:47 in2 Exp $ */
+/* $Id: user.c,v 1.14 2002/04/27 15:50:17 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -319,7 +319,7 @@ void uinfo_query(userec_t *u, int real, int unum) {
if(HAS_PERM(PERM_BBSADM)) {
sprintf(genbuf, "%d", x.money);
if(getdata_str(i++, 0,"銀行帳戶:", buf, 10, DOECHO,genbuf))
- if((l = atol(buf)) >= 0) {
+ if((l = atol(buf)) != 0) {
if(l != x.money) {
money_change = 1;
money = x.money;
@@ -329,7 +329,7 @@ void uinfo_query(userec_t *u, int real, int unum) {
}
sprintf(genbuf, "%d", x.exmailbox);
if(getdata_str(i++, 0,"購買信箱數:", buf, 4, DOECHO,genbuf))
- if((l = atol(buf)) >= 0)
+ if((l = atol(buf)) != 0)
x.exmailbox = (int)l;
getdata_buf(i++, 0, "認證資料:", x.justify, 44, DOECHO);