Update for lost areanumber
This commit is contained in:
parent
e98e35e244
commit
db83218bc7
@ -175,16 +175,11 @@ void SwapDate(char *Date3, char *Date4)
|
|||||||
void user()
|
void user()
|
||||||
{
|
{
|
||||||
FILE *pUsrConfig, *pLimits;
|
FILE *pUsrConfig, *pLimits;
|
||||||
int i, x;
|
int i, x, FoundName = FALSE, iFoundLimit = FALSE, IsNew = FALSE;
|
||||||
int FoundName = FALSE, iFoundLimit = FALSE;
|
|
||||||
long l1, l2;
|
long l1, l2;
|
||||||
char *token;
|
char *token, temp[PATH_MAX], temp1[84], UserName[37];
|
||||||
char temp[PATH_MAX];
|
|
||||||
char temp1[84];
|
|
||||||
time_t LastLogin;
|
time_t LastLogin;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
char UserName[37];
|
|
||||||
int IsNew = FALSE;
|
|
||||||
|
|
||||||
grecno = 0;
|
grecno = 0;
|
||||||
Syslog('+', "Unixmode login: %s", sUnixName);
|
Syslog('+', "Unixmode login: %s", sUnixName);
|
||||||
@ -261,6 +256,14 @@ void user()
|
|||||||
else
|
else
|
||||||
UserCity(mypid, usrconfig.sUserName, (char *)"N/A");
|
UserCity(mypid, usrconfig.sUserName, (char *)"N/A");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set last file and message area so these numbers are saved when
|
||||||
|
* the user hangs up or is logged off before het gets to the main
|
||||||
|
* menu. Later in this function the areas are set permanent.
|
||||||
|
*/
|
||||||
|
iAreaNumber = usrconfig.iLastFileArea;
|
||||||
|
iLastMsgArea = usrconfig.iLastMsgArea;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* See if this user is the Sysop.
|
* See if this user is the Sysop.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user