summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-06 15:54:16 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-06 15:54:16 +0800
commit0480bbc1fe207b2d056b522f1e64423dc1dffbad (patch)
tree51d899da96714f0e4a60f81e366b8c0bb956cf94 /mbbsd/cache.c
parente58484742bc2812a2082cce244ff3bdf3d156d55 (diff)
downloadpttbbs-0480bbc1fe207b2d056b522f1e64423dc1dffbad.tar
pttbbs-0480bbc1fe207b2d056b522f1e64423dc1dffbad.tar.gz
pttbbs-0480bbc1fe207b2d056b522f1e64423dc1dffbad.tar.bz2
pttbbs-0480bbc1fe207b2d056b522f1e64423dc1dffbad.tar.lz
pttbbs-0480bbc1fe207b2d056b522f1e64423dc1dffbad.tar.xz
pttbbs-0480bbc1fe207b2d056b522f1e64423dc1dffbad.tar.zst
pttbbs-0480bbc1fe207b2d056b522f1e64423dc1dffbad.zip
- bbslua: add more API
- cache: add getutmpmode() - othellow: quick exit git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 5c4cb7af..5f15130a 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -500,6 +500,14 @@ setutmpmode(unsigned int mode)
log_user("setutmpmode to %s(%d)\n", modestring(currutmp, 0), mode);
}
}
+
+unsigned int
+getutmpmode(void)
+{
+ if (currutmp)
+ return currutmp->mode;
+ return currstat;
+}
#endif
/*