summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-27 01:26:37 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-27 01:26:37 +0800
commitfcda94368ef75154d2730b9c2c0bfbd451e05173 (patch)
treee9f0a4f0ee486d2b49ff2eecacc7e8dea7bb2b0f
parent884815b8df616d5c1a253f168f872a6ff04a699a (diff)
downloadpttbbs-fcda94368ef75154d2730b9c2c0bfbd451e05173.tar
pttbbs-fcda94368ef75154d2730b9c2c0bfbd451e05173.tar.gz
pttbbs-fcda94368ef75154d2730b9c2c0bfbd451e05173.tar.bz2
pttbbs-fcda94368ef75154d2730b9c2c0bfbd451e05173.tar.lz
pttbbs-fcda94368ef75154d2730b9c2c0bfbd451e05173.tar.xz
pttbbs-fcda94368ef75154d2730b9c2c0bfbd451e05173.tar.zst
pttbbs-fcda94368ef75154d2730b9c2c0bfbd451e05173.zip
If pay under 100 there is no invoice
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2354 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index e9ef946c..87156d15 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -63,6 +63,7 @@ vice(int money, char *item)
unsigned int viceserial = (currutmp->lastact % 10000) * 10000 + rand() % 10000;
demoney(-money);
+ if(money<100) return 0;
setuserfile(buf, VICE_NEW);
log_file(buf, LOG_CREAT | LOG_VF, "%8.8d\n", viceserial);
snprintf(buf, sizeof(buf),