C# Class IrcShark.Chatting.Irc.Extended.User

An instance of the User class represents a user on the IRC network.
A User instance gives more information about a user, than a UserInfo instance. You can check see, in what channels the user is, if you are in the channel too.
Inheritance: UserInfo
Datei anzeigen Open project: hapm/IrcShark

Public Methods

Method Description
IsIn ( string channelName ) : bool

Checks if the user is in the given channel.

User ( UserInfo info, string channels ) : System

Initializes a new instance of the User class.

Private Methods

Method Description
Client_JoinReceived ( object sender, JoinReceivedEventArgs e ) : void

Handles received joins and add the user to channels, if it has joined a new one.

Method Details

IsIn() public method

Checks if the user is in the given channel.
public IsIn ( string channelName ) : bool
channelName string The name of the channel to check.
return bool

User() public method

Initializes a new instance of the User class.
public User ( UserInfo info, string channels ) : System
info UserInfo The UserInfo of the user to watch.
channels string The channels the user is currently in.
return System