Bit permission
31 - Enter full hub
30 - !drop
29 - kick
28 - !ban, !unban
27 - redirect
26 - !gag, !ungag
25 - !op
24 - !restarthub
23 - !restartscripts
22 - !getbanlist
21 - !getinfo
20 - !cleartempban
19 - no share limit
18 - no slot check
17 - no slot/hub check
16 - no maxhubs check
15 - no chatlimit
14 - !addreguser
13 - !delreguser
12 - reserved
11 - reserved
10 - reserved
09 - reserved
08 - reserved
07 - reserved
06 - reserved
05 - reserved
04 - reserved
03 - reserved
02 - reserved
01 - reserved
00 - reserved
There is few functions for working with profiles:
AddProfile(name, profile_data)
------------------------------
- this function adds new custom profile.
name - string
profile_data - number computed as a sum of values of individual bits. Value of a bit is a n-th power of 2.
Ex.:
to compute a profile that allows user to 'enter full hub' (bit 31), '!getbanlist' (bit 22) and 'no share limit' (bit 19) the formula is as follows
profile_data = 2^31 + 2^22 + 2^19
result in decimal form is: 2152202240
result on binary form is: 10000000010010000000000000000000
Returns: -1 if the profile already exists or new profile index on success
RemoveProfile(name)
-------------------
- this function removes profile
name - string
Returns: 0 if the profile doesn't exists or it's a default profile idx 0-3 or no parameter given
-1 if the profile is in use
1 on success
GetProfileIdx(name)
---------------------
- this function can be used to retrieve index of a profile. i.e. for the AddRegUser(nick, pass, profile_index) function
name - string
Returns: -1 if the profile name doesn't exist or profile index on success
GetProfileName(idx)
-------------------
- this function returns profile name of given index
idx - number
Returns: profile name as a string or nil if no profile of given index exists
GetProfiles()
-------------
- this function can be used to retrieve a list of all profile names
Returns: numbered zero-based table of strings
GetUsersByProfile(name)
-----------------------
- this function can be used to retrieve a list of all users with given profile
name - string
Returns: numbered zero-based table of strings
can anyone make a script from that or how it works thx
Hi,
If i understood you want a script to make profiles, right ?? Well is easyer to make new profiles by the software Hub, because for new profiles you have to make several conts to get to the profile wanted.
Best regards, nErBoS
thx for your answer