summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-13 19:50:24 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-13 19:50:24 +0800
commit6d6273c57b2a35a2d71c778de11643376b5eb015 (patch)
tree653af56c3c279496cef16884e95fad547b5df08a /mbbsd/mbbsd.c
parentafd40b73c635e700c5ba4dda6a3e162c78ea52cd (diff)
downloadpttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.gz
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.bz2
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.lz
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.xz
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.tar.zst
pttbbs-6d6273c57b2a35a2d71c778de11643376b5eb015.zip
- add calendar in login view
- add color help in calendar help - change param of more path to const git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4157 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 7174bba8..72b40cc5 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1292,8 +1292,21 @@ user_login(void)
}
for (i = 0; i < NUMVIEWFILE; i++)
+ {
if ((cuser.loginview >> i) & 1)
- more(loginview_file[(int)i][0], YEA);
+ {
+ const char *fn = loginview_file[(int)i][0];
+ if (*fn == '@') // special
+ {
+ // since only one special now, let's write directly...
+ if (strcmp(fn, "@calendar") == 0)
+ calendar();
+ } else {
+ // use NA+pause or YEA?
+ more(fn, YEA);
+ }
+ }
+ }
}
static void