diff options
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index f907eae8..d3868532 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -962,6 +962,9 @@ setup_utmp(int mode) uinfo.sex = cuser.sex % 8; uinfo.lastact = time(NULL); + // only enable this after you've really changed talk.c to NOT use from_alias. + uinfo.from_ip = inet_addr(fromhost); + strlcpy(uinfo.userid, cuser.userid, sizeof(uinfo.userid)); strlcpy(uinfo.nickname, cuser.nickname, sizeof(uinfo.nickname)); strlcpy(uinfo.from, fromhost, sizeof(uinfo.from)); @@ -1024,7 +1027,11 @@ setup_utmp(int mode) } } # else // !FROMD - currutmp->from_alias = where(fromhost); + { + int desc = where(fromhost); + if (desc > 0) + strlcpy(currutmp->from, SHM->home_desc[desc], sizeof(currutmp->from)); + } # endif // !FROMD #endif // WHERE |