summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-16 23:11:10 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-16 23:11:10 +0800
commitf79d7ef296f497b75d91a7770c7c1abce36961a4 (patch)
tree38f12efc08dc53260fba13eef21686bbd6904274 /mbbsd/mbbsd.c
parent29d876cdef4b32738321498a77ba833d828bfbe4 (diff)
downloadpttbbs-f79d7ef296f497b75d91a7770c7c1abce36961a4.tar
pttbbs-f79d7ef296f497b75d91a7770c7c1abce36961a4.tar.gz
pttbbs-f79d7ef296f497b75d91a7770c7c1abce36961a4.tar.bz2
pttbbs-f79d7ef296f497b75d91a7770c7c1abce36961a4.tar.lz
pttbbs-f79d7ef296f497b75d91a7770c7c1abce36961a4.tar.xz
pttbbs-f79d7ef296f497b75d91a7770c7c1abce36961a4.tar.zst
pttbbs-f79d7ef296f497b75d91a7770c7c1abce36961a4.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@31 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index b55cbe23..265a4d74 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.9 2002/03/16 13:18:59 ptt Exp $ */
+/* $Id: mbbsd.c,v 1.10 2002/03/16 15:11:10 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -379,6 +379,7 @@ add_history(msgque_t *msg)
swater[i] = &water[i + 1];
strcpy(swater[i]->userid, msg->userid);
swater[i]->pid = msg->pid;
+ swater[i]->uin = (userinfo_t *)search_ulist_pid(msg->pid);
}
tmp = swater[i];
}
@@ -387,6 +388,7 @@ add_history(msgque_t *msg)
memset(swater[4], 0, sizeof (water_t));
strcpy(swater[4]->userid, msg->userid);
swater[4]->pid = msg->pid;
+ swater[4]->uin = (userinfo_t *)search_ulist_pid(msg->pid);
i = 4;
}
@@ -403,8 +405,7 @@ add_history(msgque_t *msg)
watermode++;
t_display_new();
}
- }else
- swater[0]->uin = (userinfo_t *)search_ulist_pid(swater[0]->pid);
+ }
return i;
}
@@ -894,7 +895,7 @@ user_login ()
if (cuser.userlevel){/* not guest */
move (t_lines - 4, 0);
- prints (" 歡迎您第 \033[1;33m%d\033[0;37m 度拜訪本站,"
+ prints ("\033[m 歡迎您第 \033[1;33m%d\033[0;37m 度拜訪本站,"
"上次您是從 \033[1;33m%s\033[0;37m 連往本站,\n"
" 我記得那天是 \033[1;33m%s\033[0;37m。\n",
++cuser.numlogins, cuser.lasthost, Cdate (&cuser.lastlogin));