mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 02:43:57 +02:00
- added option to disable file transfers for tileset and/or techtrees for published (internet) games
This commit is contained in:
@@ -48,6 +48,21 @@ typedef struct
|
||||
*/
|
||||
LOCAL ftpUserAccount_S ftpUsers[MAX_USERS];
|
||||
|
||||
|
||||
int ftpDeleteAccount(const char* name)
|
||||
{
|
||||
int n;
|
||||
|
||||
n = ftpFindAccount(name); // check if account already exists
|
||||
if(n > 0)
|
||||
{
|
||||
ftpUsers[n - 1].name[0] = '\0'; // delete account
|
||||
return 0;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Creates a new user account
|
||||
*
|
||||
|
Reference in New Issue
Block a user