C# Class Squishy.Irc.IrcChannel

Inheritance: IComparable, ChatTarget
Afficher le fichier Open project: jaddie/WCell-Utility-Bot Class Usage Examples

Méthodes publiques

Свойство Type Description
BanMasks BanEntry>.IDictionary
Privileges UserPrivSet>.IDictionary
UnbanTimers UnbanTimer>.IDictionary
Users IrcUser>.IDictionary

Méthodes publiques

Méthode Description
CompareTo ( object channel ) : int
GetEnumerator ( ) : IEnumerator
GetHighestPriv ( IrcUser user ) : Privilege
GetModes ( ) : string

Returns the modes that are set on this channel.

GetPrivs ( IrcUser user ) : UserPrivSet
GetUser ( string nick ) : IrcUser

Returns the User with the specified nick who is in this Channel or null if there is no such User.

HasMode ( string modes ) : bool

Returns wether or not this channel has the specified flags, independent on their sequence.

HasOp ( IrcUser user ) : bool
HasOp ( string nick ) : bool
HasPriv ( IrcUser user, Privilege priv ) : bool
HasUser ( string nick ) : bool

Returns wether or not a User with the specified nick is on this Channel.

HasVoice ( IrcUser user ) : bool
HasVoice ( string nick ) : bool
IrcChannel ( IrcClient irc, string name ) : System
Is ( string name ) : bool

Compares this channel'str name with the specified string case-insensitively.

IsBanned ( string Banmask ) : bool

Indicates wether or not the specified banmask has been set on this Channel.

IsUser ( IrcUser user, Privilege priv ) : bool
IsUser ( string nick, Privilege priv ) : bool
IsUserAtLeast ( IrcUser user, Privilege priv ) : bool
IsUserAtLeast ( string nick, Privilege priv ) : bool
Msg ( object format ) : void
Notice ( string line ) : void
ToString ( ) : string
this ( string nick ) : IrcUser

Returns a User within this channel with the corresponding nick.

Méthodes protégées

Méthode Description
OnNotice ( IrcUser user, IrcChannel channel, StringStream text ) : void

Fires when the Client receives any kind of NOTICE.

Private Methods

Méthode Description
AddFlag ( Privilege priv, IrcUser user ) : void
AddMode ( string mode, string args ) : void
AddNames ( string nickString ) : Squishy.Irc.IrcUser[]
AddUnbanTimer ( UnbanTimer timer ) : void
AddUser ( IrcUser user ) : void
AddUser ( IrcUser user, string flags ) : void
BanListCompleteNotify ( ) : void
BanListEntrySentNotify ( BanEntry entry ) : void
ChanCreationTimeSentNotify ( System.DateTime creationTime ) : void
ClearModes ( ) : void
DeleteFlag ( Privilege priv, IrcUser user ) : void
DeleteMode ( string mode ) : void
DeleteUser ( IrcUser user ) : void
ElapsUnbanTimer ( UnbanTimer timer ) : void
FlagAddedNotify ( IrcUser user, Privilege priv, IrcUser target ) : void
FlagDeletedNotify ( IrcUser user, Privilege priv, IrcUser target ) : void
ModeAddedNotify ( IrcUser user, string mode, string param ) : void
ModeDeletedNotify ( IrcUser user, string mode, string param ) : void
MsgReceivedNotify ( IrcUser user, StringStream text ) : void
NoticeNotify ( IrcUser user, IrcChannel channel, StringStream text ) : void
NoticeReceivedNotify ( IrcUser user, StringStream text ) : void
OnNickChange ( IrcUser user, string oldNick ) : void
SetCreationTime ( System.DateTime when ) : void
SetTopic ( string text ) : void
TextNotify ( IrcUser user, StringStream text ) : void
TopicChangedNotify ( IrcUser user, string text, bool initial ) : void
UserJoinedNotify ( IrcUser user ) : void
UserKickedNotify ( IrcUser from, IrcUser target, string reason ) : void
UserLeftNotify ( IrcUser user, string reason ) : void
UserPartedNotify ( IrcUser user, string reason ) : void
UsersAddedNotify ( IrcUser users ) : void

Method Details

CompareTo() public méthode

public CompareTo ( object channel ) : int
channel object
Résultat int

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetHighestPriv() public méthode

public GetHighestPriv ( IrcUser user ) : Privilege
user IrcUser
Résultat Privilege

GetModes() public méthode

Returns the modes that are set on this channel.
public GetModes ( ) : string
Résultat string

GetPrivs() public méthode

public GetPrivs ( IrcUser user ) : UserPrivSet
user IrcUser
Résultat UserPrivSet

GetUser() public méthode

Returns the User with the specified nick who is in this Channel or null if there is no such User.
public GetUser ( string nick ) : IrcUser
nick string
Résultat IrcUser

HasMode() public méthode

Returns wether or not this channel has the specified flags, independent on their sequence.
public HasMode ( string modes ) : bool
modes string
Résultat bool

HasOp() public méthode

public HasOp ( IrcUser user ) : bool
user IrcUser
Résultat bool

HasOp() public méthode

public HasOp ( string nick ) : bool
nick string
Résultat bool

HasPriv() public méthode

public HasPriv ( IrcUser user, Privilege priv ) : bool
user IrcUser
priv Privilege
Résultat bool

HasUser() public méthode

Returns wether or not a User with the specified nick is on this Channel.
public HasUser ( string nick ) : bool
nick string
Résultat bool

HasVoice() public méthode

public HasVoice ( IrcUser user ) : bool
user IrcUser
Résultat bool

HasVoice() public méthode

public HasVoice ( string nick ) : bool
nick string
Résultat bool

IrcChannel() public méthode

public IrcChannel ( IrcClient irc, string name ) : System
irc IrcClient
name string
Résultat System

Is() public méthode

Compares this channel'str name with the specified string case-insensitively.
public Is ( string name ) : bool
name string
Résultat bool

IsBanned() public méthode

Indicates wether or not the specified banmask has been set on this Channel.
public IsBanned ( string Banmask ) : bool
Banmask string
Résultat bool

IsUser() public méthode

public IsUser ( IrcUser user, Privilege priv ) : bool
user IrcUser
priv Privilege
Résultat bool

IsUser() public méthode

public IsUser ( string nick, Privilege priv ) : bool
nick string
priv Privilege
Résultat bool

IsUserAtLeast() public méthode

public IsUserAtLeast ( IrcUser user, Privilege priv ) : bool
user IrcUser
priv Privilege
Résultat bool

IsUserAtLeast() public méthode

public IsUserAtLeast ( string nick, Privilege priv ) : bool
nick string
priv Privilege
Résultat bool

Msg() public méthode

public Msg ( object format ) : void
format object
Résultat void

Notice() public méthode

public Notice ( string line ) : void
line string
Résultat void

OnNotice() protected méthode

Fires when the Client receives any kind of NOTICE.
protected OnNotice ( IrcUser user, IrcChannel channel, StringStream text ) : void
user IrcUser The User who sent the text
channel IrcChannel The Channel where it was sent (can be null)
text StringStream The text which was sent
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

this() public méthode

Returns a User within this channel with the corresponding nick.
public this ( string nick ) : IrcUser
nick string
Résultat IrcUser

Property Details

BanMasks public_oe property

public IDictionary BanMasks
Résultat BanEntry>.IDictionary

Privileges public_oe property

public IDictionary Privileges
Résultat UserPrivSet>.IDictionary

UnbanTimers public_oe property

public IDictionary UnbanTimers
Résultat UnbanTimer>.IDictionary

Users public_oe property

public IDictionary Users
Résultat IrcUser>.IDictionary