C# Class IRC.Commands

Afficher le fichier Open project: tamaw/SharpIRC

Méthodes publiques

Méthode Description
Admin ( this client, string target = "" ) : void

The admin command is used to find information about the administrator of the given server, or current server if parameter is omitted. Each server MUST have the ability to forward ADMIN messages to other servers.

Away ( this client, string text = "" ) : void
Connect ( this client, string target, string port, string remote = "" ) : void

The CONNECT command can be used to request a server to try to establish a new connection to another server immediately. CONNECT is a privileged command and SHOULD be available only to IRC Operators.

Die ( this client ) : void
Info ( this client, string target = "" ) : void

The INFO command is REQUIRED to return information describing the server: its version, when it was compiled, the patchlevel, when it was started, and any other miscellaneous information which may be considered to be relevant.

Invite ( this client, string nickname, string channel ) : void
Ison ( this client, string nickname ) : void
Join ( this client, string name, string key = "" ) : void
Kick ( this client, string channel, string user, string comment = "" ) : void
Kill ( this client, string nickname, string comment ) : void
LUsers ( this client, string mask = "", string target = "" ) : void
Links ( this client, string server = "", string mask = "" ) : void
List ( this client, string channels = null ) : void
Mode ( this client, string nickname, string mode ) : void
Mode ( this client, string name, string modes, string modeParams ) : void
Names ( this client ) : void
Names ( this client, string channel ) : void
Nick ( this client, string nickname ) : void
Notice ( this client, string msgTarget, string text ) : void
Oper ( this client, string name, string password ) : void
Part ( this client, string name, string message = "" ) : void
Pass ( this client, string password ) : void
Ping ( this client, string server1, string server2 = "" ) : void
Pong ( this client, string server, string server2 = "" ) : void
PrivMsg ( this client, string msgTarget, string message ) : void
Quit ( this client, string message = "" ) : void
Rehash ( this client ) : void

The rehash command is an administrative command which can be used by an operator to force the server to re-read and process its configuration file.

Restart ( this client ) : void
SQuery ( this client, string servicename, string text ) : void

The SQUERY command is used similarly to PRIVMSG. The only difference is that the recipient MUST be a service. This is the only way for a text message to be delivered to a service.

SQuit ( this client, string server, string comment ) : void
ServList ( this client, string mask = "", string type = "" ) : void

The SERVLIST command is used to list services currently connected to the network and visible to the user issuing the command. The optional parameters may be used to restrict the result of the query (to matching services names, and services type).

Service ( this client, string nickname, string type, string reserved, string info ) : void
Stats ( this client, string query = "", string target = "" ) : void
Summon ( this client, string user, string target = "", string channel = "" ) : void
Target ( this client, string target = "" ) : void
Time ( this client, string target = "" ) : void
Topic ( this client, string name ) : void
Topic ( this client, string channel, string topic ) : void
Trace ( this client, string target = "" ) : void
User ( this client, string user, User mode, string realname ) : void
UserHost ( this client, string nickname ) : void
Version ( this client, string target = "" ) : void
WallOps ( this client, string text ) : void
Who ( this client, string mask = "" ) : void

The WHO command is used by a client to generate a query which returns a list of information which 'matches' the parameter given by the client. In the absence of the parameter, all visible (users who aren't invisible (user mode +i) and who don't have a common channel with the requesting client) are listed. The same result can be achieved by using a of "0" or any wildcard which will end up matching every visible user.

WhoIs ( this client, string mask = "", string target = "" ) : void
WhoWas ( this client, string nickname, string count = "", string target = "" ) : void

Method Details

Admin() public static méthode

The admin command is used to find information about the administrator of the given server, or current server if parameter is omitted. Each server MUST have the ability to forward ADMIN messages to other servers.
public static Admin ( this client, string target = "" ) : void
client this
target string
Résultat void

Away() public static méthode

public static Away ( this client, string text = "" ) : void
client this
text string
Résultat void

Connect() public static méthode

The CONNECT command can be used to request a server to try to establish a new connection to another server immediately. CONNECT is a privileged command and SHOULD be available only to IRC Operators.
public static Connect ( this client, string target, string port, string remote = "" ) : void
client this
target string
port string
remote string
Résultat void

Die() public static méthode

public static Die ( this client ) : void
client this
Résultat void

Info() public static méthode

The INFO command is REQUIRED to return information describing the server: its version, when it was compiled, the patchlevel, when it was started, and any other miscellaneous information which may be considered to be relevant.
public static Info ( this client, string target = "" ) : void
client this
target string
Résultat void

Invite() public static méthode

public static Invite ( this client, string nickname, string channel ) : void
client this
nickname string
channel string
Résultat void

Ison() public static méthode

public static Ison ( this client, string nickname ) : void
client this
nickname string
Résultat void

Join() public static méthode

public static Join ( this client, string name, string key = "" ) : void
client this
name string
key string
Résultat void

Kick() public static méthode

public static Kick ( this client, string channel, string user, string comment = "" ) : void
client this
channel string
user string
comment string
Résultat void

Kill() public static méthode

public static Kill ( this client, string nickname, string comment ) : void
client this
nickname string
comment string
Résultat void

LUsers() public static méthode

public static LUsers ( this client, string mask = "", string target = "" ) : void
client this
mask string
target string
Résultat void

Links() public static méthode

public static Links ( this client, string server = "", string mask = "" ) : void
client this
server string
mask string
Résultat void

List() public static méthode

public static List ( this client, string channels = null ) : void
client this
channels string
Résultat void

Mode() public static méthode

public static Mode ( this client, string nickname, string mode ) : void
client this
nickname string
mode string
Résultat void

Mode() public static méthode

public static Mode ( this client, string name, string modes, string modeParams ) : void
client this
name string
modes string
modeParams string
Résultat void

Names() public static méthode

public static Names ( this client ) : void
client this
Résultat void

Names() public static méthode

public static Names ( this client, string channel ) : void
client this
channel string
Résultat void

Nick() public static méthode

public static Nick ( this client, string nickname ) : void
client this
nickname string
Résultat void

Notice() public static méthode

public static Notice ( this client, string msgTarget, string text ) : void
client this
msgTarget string
text string
Résultat void

Oper() public static méthode

public static Oper ( this client, string name, string password ) : void
client this
name string
password string
Résultat void

Part() public static méthode

public static Part ( this client, string name, string message = "" ) : void
client this
name string
message string
Résultat void

Pass() public static méthode

public static Pass ( this client, string password ) : void
client this
password string
Résultat void

Ping() public static méthode

public static Ping ( this client, string server1, string server2 = "" ) : void
client this
server1 string
server2 string
Résultat void

Pong() public static méthode

public static Pong ( this client, string server, string server2 = "" ) : void
client this
server string
server2 string
Résultat void

PrivMsg() public static méthode

public static PrivMsg ( this client, string msgTarget, string message ) : void
client this
msgTarget string
message string
Résultat void

Quit() public static méthode

public static Quit ( this client, string message = "" ) : void
client this
message string
Résultat void

Rehash() public static méthode

The rehash command is an administrative command which can be used by an operator to force the server to re-read and process its configuration file.
public static Rehash ( this client ) : void
client this
Résultat void

Restart() public static méthode

public static Restart ( this client ) : void
client this
Résultat void

SQuery() public static méthode

The SQUERY command is used similarly to PRIVMSG. The only difference is that the recipient MUST be a service. This is the only way for a text message to be delivered to a service.
public static SQuery ( this client, string servicename, string text ) : void
client this
servicename string
text string
Résultat void

SQuit() public static méthode

public static SQuit ( this client, string server, string comment ) : void
client this
server string
comment string
Résultat void

ServList() public static méthode

The SERVLIST command is used to list services currently connected to the network and visible to the user issuing the command. The optional parameters may be used to restrict the result of the query (to matching services names, and services type).
public static ServList ( this client, string mask = "", string type = "" ) : void
client this
mask string
type string
Résultat void

Service() public static méthode

public static Service ( this client, string nickname, string type, string reserved, string info ) : void
client this
nickname string
type string
reserved string
info string
Résultat void

Stats() public static méthode

public static Stats ( this client, string query = "", string target = "" ) : void
client this
query string
target string
Résultat void

Summon() public static méthode

public static Summon ( this client, string user, string target = "", string channel = "" ) : void
client this
user string
target string
channel string
Résultat void

Target() public static méthode

public static Target ( this client, string target = "" ) : void
client this
target string
Résultat void

Time() public static méthode

public static Time ( this client, string target = "" ) : void
client this
target string
Résultat void

Topic() public static méthode

public static Topic ( this client, string name ) : void
client this
name string
Résultat void

Topic() public static méthode

public static Topic ( this client, string channel, string topic ) : void
client this
channel string
topic string
Résultat void

Trace() public static méthode

public static Trace ( this client, string target = "" ) : void
client this
target string
Résultat void

User() public static méthode

public static User ( this client, string user, User mode, string realname ) : void
client this
user string
mode User
realname string
Résultat void

UserHost() public static méthode

public static UserHost ( this client, string nickname ) : void
client this
nickname string
Résultat void

Version() public static méthode

public static Version ( this client, string target = "" ) : void
client this
target string
Résultat void

WallOps() public static méthode

public static WallOps ( this client, string text ) : void
client this
text string
Résultat void

Who() public static méthode

The WHO command is used by a client to generate a query which returns a list of information which 'matches' the parameter given by the client. In the absence of the parameter, all visible (users who aren't invisible (user mode +i) and who don't have a common channel with the requesting client) are listed. The same result can be achieved by using a of "0" or any wildcard which will end up matching every visible user.
public static Who ( this client, string mask = "" ) : void
client this
mask string The <mask> passed to WHO is matched against users' host, server, real /// name and nickname if the channel cannot be found.
Résultat void

WhoIs() public static méthode

public static WhoIs ( this client, string mask = "", string target = "" ) : void
client this
mask string
target string
Résultat void

WhoWas() public static méthode

public static WhoWas ( this client, string nickname, string count = "", string target = "" ) : void
client this
nickname string
count string
target string
Résultat void