Property | Type | Description | |
---|---|---|---|
Roles | Role>.Dictionary | ||
Users | List |
Method | Description | |
---|---|---|
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 ( |
Method | Description | |
---|---|---|
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 |
return | bool |
public static Auth ( string User, string Password ) : |
||
User | string | Username |
Password | string | Password |
return |
public DeleteUser ( |
||
origin | ||
user | string | Regex |
return | void |
public static EscapeUser ( string name ) : string | ||
name | string | |
return | string |
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' /// |
return |
public static GetLevelOfRole ( string role ) : int | ||
role | string | |
return | int |
public static GetNameOfRole ( |
||
role | ||
return | 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) /// |
return |
public InsertUser ( |
||
node | ||
return | void |
public IsApproved ( libirc user, string command ) : bool | ||
user | libirc | |
command | string | |
return | bool |
public IsApproved ( string User, string Host, string privilege ) : bool | ||
User | string | Username |
Host | string | Hostname |
privilege | string | Approved for specified object / request |
return | bool |
public static IsGloballyApproved ( |
||
user | ||
permission | string | |
return | bool |
public static IsGloballyApproved ( libirc user, string permission ) : bool | ||
user | libirc | |
permission | string | |
return | bool |
public IsKnown ( string User, string Host ) : bool | ||
User | string | |
Host | string | |
return | bool |