From 8601b22b64b7f524e299773a6915bbedb5f78ab4 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 13 May 2008 07:54:56 +0000 Subject: - general message refine git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4306 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mbbsd/cal.c') 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; } -- cgit v1.2.3