summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-03-22 23:07:05 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-03-22 23:07:05 +0800
commitc124ecaf322fdfc717defe4d2af11eb398f5148c (patch)
tree1a15149fccee40d328141b2197956586ba91588a
parent7b2b7df82f51e2bb8fe88107c412824023b7dbcb (diff)
downloadpttbbs-c124ecaf322fdfc717defe4d2af11eb398f5148c.tar
pttbbs-c124ecaf322fdfc717defe4d2af11eb398f5148c.tar.gz
pttbbs-c124ecaf322fdfc717defe4d2af11eb398f5148c.tar.bz2
pttbbs-c124ecaf322fdfc717defe4d2af11eb398f5148c.tar.lz
pttbbs-c124ecaf322fdfc717defe4d2af11eb398f5148c.tar.xz
pttbbs-c124ecaf322fdfc717defe4d2af11eb398f5148c.tar.zst
pttbbs-c124ecaf322fdfc717defe4d2af11eb398f5148c.zip
misc angel fix
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5819 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/angel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/angel.c b/pttbbs/mbbsd/angel.c
index 6197e4cc..6899aa49 100644
--- a/pttbbs/mbbsd/angel.c
+++ b/pttbbs/mbbsd/angel.c
@@ -420,7 +420,7 @@ int angel_check_master(void) {
vs_hdr2(PROMPT_ANGELBEATS, " 查詢主人狀態 ");
usercomplete("想查詢的主人 ID: ", uid);
move(2, 0); clrtobot();
- if (!uid)
+ if (!*uid)
return 0;
if (getuser(uid, &xuser) < 1) {
vmsg("此 ID 不存在。");
@@ -437,6 +437,8 @@ int angel_check_master(void) {
if (xuser.timeplayangel)
prints("小主人最後一次成功\呼叫你(hh)的時間是 %s\n",
Cdatelite(&xuser.timeplayangel));
+ else
+ prints("但是小主人從來沒有過成功\呼叫你(常見於洗天使或誤按的主人)。\n");
} else {
prints(ANSI_COLOR(1;31) "%s 不是你的小主人。" ANSI_RESET "\n",
xuser.userid);