IrcServer

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Classes

Channel
class Channel
Undocumented in source.
Client
class Client

Client connection and information

NetworkClient
class NetworkClient
Undocumented in source.

Functions

allClientsInChannels
Client[string] allClientsInChannels(Channel[] channels)
Undocumented in source. Be warned that the author may not have intended to support it.
capabilities
string[] capabilities()
Undocumented in source. Be warned that the author may not have intended to support it.
channelChanged
void channelChanged(Channel channel)

Persistence hook

close
void close(string reason)
Undocumented in source. Be warned that the author may not have intended to support it.
createChannel
Channel createChannel(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
createClient
Client createClient(TcpConnection incoming)
Undocumented in source. Be warned that the author may not have intended to support it.
isChannelName
bool isChannelName(string target)
Undocumented in source. Be warned that the author may not have intended to support it.
listen
ushort listen(ushort port, string addr)
Undocumented in source. Be warned that the author may not have intended to support it.
onAccept
void onAccept(TcpConnection incoming)
Undocumented in source. Be warned that the author may not have intended to support it.
whoCanSee
Client[string] whoCanSee(Client who)

Clients who can see the given client (are in the same channer). Includes the target client himself.

Variables

addressMask
string addressMask;

If set, masks all IPs to the given mask

chanTypes
string chanTypes;
Undocumented in source.
channels
Channel[string] channels;
Undocumented in source.
clients
HashSet!Client clients;

All clients

conn
TcpServer conn;
Undocumented in source.
creationTime
SysTime creationTime;
Undocumented in source.
hostname
string hostname;

Server configuration

log
Logger log;
Undocumented in source.
maxUsers
ulong maxUsers;

Statistics

motd
string[] motd;
Undocumented in source.
network
string network;

Server configuration

nicknameMaxLength
uint nicknameMaxLength;

For the announced capabilities

nicknameValidationPattern
string nicknameValidationPattern;
Undocumented in source.
nicknames
Client[string] nicknames;

Registered clients only

operPassword
string operPassword;
Undocumented in source.
password
string password;

Server configuration

serverVersion
string serverVersion;
Undocumented in source.
staticChannels
bool staticChannels;

Channels can't be created by users, and don't disappear when they're empty

totalConnections
ulong totalConnections;

Statistics

Meta