프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Roles | Role>.Dictionary | ||
Users | List |
메소드 | 설명 | |
---|---|---|
AddUser ( string level, string user ) : bool |
Add
|
|
Auth ( string User, string Password ) : |
Verify the users credentials and if they are correct, returns a user instance
|
|
DeleteUser ( |
Delete user
|
|
Dump ( ) : string | ||
EscapeUser ( string name ) : string |
Normalize user
|
|
GetGlobalUser ( string user ) : |
Gets the global user. Work just as GetUser, but only for global records
|
|
GetLevel ( libirc user ) : int |
Return a level of role that this user posses
|
|
GetLevelOfRole ( string role ) : int | ||
GetNameOfRole ( |
||
GetUser ( libirc user ) : |
||
GetUser ( string user ) : |
Return user object from a name Search all global and local records for matching regex, if multiple matches are existing the one with highest privileges is returned.
|
|
Global ( ) : void |
Load a global list
|
|
Init ( ) : void |
Load all roles
|
|
InsertUser ( |
||
IsApproved ( libirc user, string command ) : bool |
Check if user is approved to do operation requested
|
|
IsApproved ( string User, string Host, string privilege ) : bool |
Check if user is approved to do operation requested
|
|
IsGloballyApproved ( |
||
IsGloballyApproved ( libirc user, string permission ) : bool | ||
IsKnown ( libirc user ) : bool | ||
IsKnown ( string User, string Host ) : bool | ||
IsRole ( string name ) : bool | ||
ListAll ( ) : string |
List all users to a channel
|
|
Save ( ) : bool |
Save
|
|
Security ( |
메소드 | 설명 | |
---|---|---|
GlobalChanged ( object sender, |
This is called when the file is changed
|
|
GlobalLoad ( ) : void |
Load all global users of bot
|
|
HasPrivilege ( string privilege, string role ) : bool |
public AddUser ( string level, string user ) : bool | ||
level | string | Level |
user | string | Regex |
리턴 | bool |
public static Auth ( string User, string Password ) : |
||
User | string | Username |
Password | string | Password |
리턴 |
public DeleteUser ( |
||
origin | ||
user | string | Regex |
리턴 | void |
public static GetGlobalUser ( string user ) : |
||
user | string | /// Identification string against which the user regexes are tested, this is usually a string /// in format of 'nick!ident@hostname' /// |
리턴 |
public static GetNameOfRole ( |
||
role | ||
리턴 | string |
public GetUser ( string user ) : |
||
user | string | /// Identification string against which the user regexes are tested, this is usually a string /// in format of nick!ident@hostname (typical for IRC protocol) /// |
리턴 |
public IsApproved ( libirc user, string command ) : bool | ||
user | libirc | |
command | string | |
리턴 | bool |
public IsApproved ( string User, string Host, string privilege ) : bool | ||
User | string | Username |
Host | string | Hostname |
privilege | string | Approved for specified object / request |
리턴 | bool |
public static IsGloballyApproved ( |
||
user | ||
permission | string | |
리턴 | bool |
public static IsGloballyApproved ( libirc user, string permission ) : bool | ||
user | libirc | |
permission | string | |
리턴 | bool |