diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-16 15:39:43 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-16 15:39:43 +0800 |
commit | b4096259775ac622ffb8b3d8b700c625f9d1a750 (patch) | |
tree | 025d4c5a62ab3fbad910da2cf1f1f063d097bd02 /mbbsd/mbbsd.c | |
parent | f4008618a3f76b120565d9b3eb9868e431ea078f (diff) | |
download | pttbbs-b4096259775ac622ffb8b3d8b700c625f9d1a750.tar pttbbs-b4096259775ac622ffb8b3d8b700c625f9d1a750.tar.gz pttbbs-b4096259775ac622ffb8b3d8b700c625f9d1a750.tar.bz2 pttbbs-b4096259775ac622ffb8b3d8b700c625f9d1a750.tar.lz pttbbs-b4096259775ac622ffb8b3d8b700c625f9d1a750.tar.xz pttbbs-b4096259775ac622ffb8b3d8b700c625f9d1a750.tar.zst pttbbs-b4096259775ac622ffb8b3d8b700c625f9d1a750.zip |
strip IAC char in user's nick
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2254 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 611d603b..101299c9 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -734,6 +734,7 @@ setup_utmp(int mode) strlcpy(uinfo.userid, cuser.userid, sizeof(uinfo.userid)); //strlcpy(uinfo.realname, cuser.realname, sizeof(uinfo.realname)); strlcpy(uinfo.username, cuser.username, sizeof(uinfo.username)); + strip_iac(uinfo.username, sizeof(uinfo.username)); strlcpy(uinfo.from, fromhost, sizeof(uinfo.from)); uinfo.five_win = cuser.five_win; uinfo.five_lose = cuser.five_lose; |