summaryrefslogtreecommitdiffstats
path: root/mbbsd/xyz.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-04 14:52:14 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-04 14:52:14 +0800
commit7204388338e4e7445afd399a2e1c4947f86fbce3 (patch)
treeacb927d31a747670a3ad1af593d537046581cb45 /mbbsd/xyz.c
parentff7b952f0b6628d4843bd0cf4ceb8e9efd7798aa (diff)
downloadpttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar
pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.gz
pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.bz2
pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.lz
pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.xz
pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.zst
pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.zip
apply rafan's (rafan.bbs@ptt2.cc) big patch to s/username/nickname/g
turn off FOREIGN_REG by default in sample/pttbbs.conf git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2887 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/xyz.c')
-rw-r--r--mbbsd/xyz.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/xyz.c b/mbbsd/xyz.c
index af5aeb5b..abbad06a 100644
--- a/mbbsd/xyz.c
+++ b/mbbsd/xyz.c
@@ -174,7 +174,7 @@ note(void)
typedef struct notedata_t {
time4_t date;
char userid[IDLEN + 1];
- char username[19];
+ char nickname[19];
char buf[3][80];
} notedata_t;
notedata_t myitem;
@@ -200,8 +200,8 @@ note(void)
} while (buf[0] == 'e');
demoney(-5);
strcpy(myitem.userid, cuser.userid);
- strncpy(myitem.username, cuser.username, 18);
- myitem.username[18] = '\0';
+ strncpy(myitem.nickname, cuser.nickname, 18);
+ myitem.nickname[18] = '\0';
myitem.date = now;
/* begin load file */
@@ -233,7 +233,7 @@ note(void)
while (total) {
snprintf(buf, sizeof(buf), ANSI_COLOR(1;31) "ùÝ¢t" ANSI_COLOR(32) " %s " ANSI_COLOR(37) "(%s)",
- myitem.userid, myitem.username);
+ myitem.userid, myitem.nickname);
len = strlen(buf);
for (i = len; i < 71; i++)
@@ -364,7 +364,7 @@ Goodbye(void)
#if 0 // def LOW_SECURITY
prints(ANSI_COLOR(1;36) "¿Ë·Rªº " ANSI_COLOR(33) "%s(%s)" ANSI_COLOR(36) "¡A§O§Ñ¤F¦A«×¥úÁ{" ANSI_COLOR(45;33) ""
" %s " ANSI_COLOR(40;36) "¡I\n¥H¤U¬O±z¦b¯¸¤ºªºµù¥U¸ê®Æ:" ANSI_COLOR(0) "\n",
- cuser.userid, cuser.username, BBSName);
+ cuser.userid, cuser.nickname, BBSName);
user_display(&cuser, 0);
pressanykey();
#endif