Accounts types, registration base cleaning

Plugin: Typi akkauntov i chistka bazy.AccountsType and cleaning

Function of accounts types allows to set static or dynamic type for account. At registration on the Hub the account with dynamic type is automatically created. If set account on static at login on the Hub will be verification of the registered IP-address with the flowing is made. If they do not coincide, the user is not passed on the Hub. Thus, users with the static IP-address at desire to exclude login possibility under them anybody from other address, can set the account on static type. Also, this plugin is used to save the language of registered users.

Change of the account on static type is made by command !static (thus your current IP-address is stored in base). Change with dynamic type of an account is made by command !dynamic (Thus your address at an login is not checked also this type is type by default after registration).

To set (add) any user on dynamic account it is possible by command !dynamicadd <nick>. To set (add) any user on static account it is possible by command !staticadd <nick> <IP>. To look all users with static type of an account it is possible by command !staticshow. To look all users with dynamic type of an account it is possible by command !dynamicshow. To find in base of accounts the user (or the IP-address) and to look its information is possible by command !findaccount <nick/IP>. To remove from base of accounts the user it is possible by command !deleteaccount <nick>. To make cleaning the base of accounts types, having removed from it not registered users, it is possible by command !clear_accounts_type.

Function of clearing registration base serves for removal of the registered users which did not come on the Hub a certain time interval ("accounts-phantoms" or "dead souls"). Has possibility to set the inactive period the user before removal of its account, possibility of addition of users in "the not cleared" list. If function is active, at midnight clearing is every day made. By default the inactive period is equal 100 days.

To make immediately cleaning of base of registration of the Hub from the accounts which were not coming on the Hub longer, than inactivity period, it is possible by command !clear_hubaccounts. On/off this function is made by command !regscleaner. To establish the inactive period the user in days before removal it is possible by command !unactiveperiod <days>.

To add the user in not cleared list when users from it do not leave afterinactive period, it is possible by command !nocleanadd <nick>. To remove the user from not cleared list it is possible by command !nocleandel <nick>. To get the list of users in not cleared list possible by command !nocleanlist.

In localisation verlihub in the file Vars.lua has constant VerliCLeanerUseSQL:
VerliCLeanerUseSQL = 0 -- use clean accounts in Verlihub with using MySQL base (1-yes, 0-no use local accounts base)

which defines, whether will be used at clearing of out-of-date types of accounts the data from base MySQL of server or the local table of accounts types will be used.

The accounts base is stored in file AccList. The list of not cleared accounts is stored in file NonClean.


<<< back | print | To main...
PhazaSoft© Ekzekutor©
Hosted by uCoz