summaryrefslogtreecommitdiffstats
path: root/mbbsd/cal.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-13 15:54:56 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-13 15:54:56 +0800
commit8601b22b64b7f524e299773a6915bbedb5f78ab4 (patch)
treecc2df71677d9d001d4575a3c83d42fd9b03a2459 /mbbsd/cal.c
parente9ee5a3e19c16c4b06bce31cf54065e36d6b0580 (diff)
downloadpttbbs-8601b22b64b7f524e299773a6915bbedb5f78ab4.tar
pttbbs-8601b22b64b7f524e299773a6915bbedb5f78ab4.tar.gz
pttbbs-8601b22b64b7f524e299773a6915bbedb5f78ab4.tar.bz2
pttbbs-8601b22b64b7f524e299773a6915bbedb5f78ab4.tar.lz
pttbbs-8601b22b64b7f524e299773a6915bbedb5f78ab4.tar.xz
pttbbs-8601b22b64b7f524e299773a6915bbedb5f78ab4.tar.zst
pttbbs-8601b22b64b7f524e299773a6915bbedb5f78ab4.zip
- general message refine
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4306 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r--mbbsd/cal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 4082de51..ee39fd83 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -291,11 +291,12 @@ p_from(void)
reload_money();
if (cuser.money < 49)
return 0;
- if (getdata_buf(b_lines - 1, 0, "請輸入新故鄉:",
- tmp_from, sizeof(tmp_from), DOECHO)) {
+ if (getdata(b_lines - 1, 0, "請輸入新故鄉:",
+ tmp_from, sizeof(tmp_from), DOECHO) &&
+ strcmp(tmp_from, currutmp->from) != 0)
+ {
vice(49, "更改故鄉");
strlcpy(currutmp->from, tmp_from, sizeof(currutmp->from));
- currutmp->from_alias = 0;
}
return 0;
}