C# Class xIrcNet.IRC

显示文件 Open project: xwcg/SpawnBot

Public Methods

Method Description
Connect ( ) : void
Disconnect ( ) : void
Disconnect ( string msg, bool connectionError ) : void
IRC ( string name, string server, int port ) : System

Creates a new IRC Connection

IRC ( string name, string password, string server, int port ) : System

Creates a new IRC Connection

IRC ( string name, string user, string realname, string server, int port ) : System

Creates a new IRC Connection

IRC ( string name, string password, string user, string realname, string server, int port ) : System

Creates a new IRC Connection

SendCommand ( string command ) : void

Private Methods

Method Description
HandleKick ( string rawparts ) : void
HandleMode ( string rawparts ) : void
HandleNameList ( string CleanText ) : void
HandleNick ( string CleanSourceNick, string NewNick ) : void
HandleNoticeMsg ( string CleanSourceNick, string rawcmd ) : void
HandlePart ( string CleanSourceNick, string rawcmd ) : void
HandlePing ( string rawHash ) : void
HandlePrivMsg ( string CleanSourceNick, string rawcmd ) : void
HandleQuit ( string CleanSourceNick, string rawcmd ) : void
HandleTopic ( string CleanText ) : void
HandleTopicInfo ( string CleanText ) : void
IRC_eventConnected ( ) : void
IRC_eventServerPongReceived ( ) : void
IRC_eventUserChangedNick ( string name, string newName ) : void
IRC_eventUserQuit ( string name, string message ) : void
RawGetHostName ( string rawpart ) : string
RawGetOnlyText ( string rawcmd ) : string

Cleans a raw command from all junk and returns only the text. Example: :irc.server.com 333 botname #channel user 123 -> #channel user 123

RawGetSourceNick ( string rawpart ) : string
ReceiveLoop ( ) : void
TimeoutLoop ( ) : void

Method Details

Connect() public method

public Connect ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Disconnect() public method

public Disconnect ( string msg, bool connectionError ) : void
msg string
connectionError bool
return void

IRC() public method

Creates a new IRC Connection
public IRC ( string name, string server, int port ) : System
name string Nickname/Handle
server string The server to connect to
port int The port where to connect to
return System

IRC() public method

Creates a new IRC Connection
public IRC ( string name, string password, string server, int port ) : System
name string Nickname/Handle
password string Server password
server string The server to connect to
port int The port where to connect to
return System

IRC() public method

Creates a new IRC Connection
public IRC ( string name, string user, string realname, string server, int port ) : System
name string Nickname/Handle
user string Username
realname string Real Name
server string The server to connect to
port int The port where to connect to
return System

IRC() public method

Creates a new IRC Connection
public IRC ( string name, string password, string user, string realname, string server, int port ) : System
name string Nickname/Handle
password string Server password
user string Username
realname string Real Name
server string The server to connect to
port int The port where to connect to
return System

SendCommand() public method

public SendCommand ( string command ) : void
command string
return void