C# Class SBUserManager.IUsers

显示文件 Open project: xwcg/SpawnBot

Public Methods

Method Description
AddUser ( string name, string channel, string hostname ) : void
ChangeUserName ( string name, string newname ) : bool
GetChannelsForUser ( string name ) : string[]
GetUser ( string name, string channel ) : IrcUser

Get a user with a complete name match. (Ignores case)

GetUserPartial ( string name, string channel ) : IrcUser

Get a user with a partial name match. (Ignores case)

GetUsers ( string name ) : SBUserManager.IrcUser[]
GetUsersForChannel ( string channel ) : SBUserManager.IrcUser[]
IsBot ( string name ) : bool
RemoveAllUser ( string name ) : bool[]
RemoveUser ( string name, string channel ) : bool
SetAdminFlag ( string name ) : bool
SetBotFlag ( string name ) : bool

Method Details

AddUser() public static method

public static AddUser ( string name, string channel, string hostname ) : void
name string
channel string
hostname string
return void

ChangeUserName() public static method

public static ChangeUserName ( string name, string newname ) : bool
name string
newname string
return bool

GetChannelsForUser() public static method

public static GetChannelsForUser ( string name ) : string[]
name string
return string[]

GetUser() public static method

Get a user with a complete name match. (Ignores case)
public static GetUser ( string name, string channel ) : IrcUser
name string Complete username
channel string Channel to look for user
return IrcUser

GetUserPartial() public static method

Get a user with a partial name match. (Ignores case)
public static GetUserPartial ( string name, string channel ) : IrcUser
name string Partial username
channel string Channel to look for user
return IrcUser

GetUsers() public static method

public static GetUsers ( string name ) : SBUserManager.IrcUser[]
name string
return SBUserManager.IrcUser[]

GetUsersForChannel() public static method

public static GetUsersForChannel ( string channel ) : SBUserManager.IrcUser[]
channel string
return SBUserManager.IrcUser[]

IsBot() public static method

public static IsBot ( string name ) : bool
name string
return bool

RemoveAllUser() public static method

public static RemoveAllUser ( string name ) : bool[]
name string
return bool[]

RemoveUser() public static method

public static RemoveUser ( string name, string channel ) : bool
name string
channel string
return bool

SetAdminFlag() public static method

public static SetAdminFlag ( string name ) : bool
name string
return bool

SetBotFlag() public static method

public static SetBotFlag ( string name ) : bool
name string
return bool