IrcServer

IRC server.

Constructors

this
this()
Undocumented in source.

Members

Classes

Channel
class Channel

IRC channel information.

Client
class Client

Abstract client connection and information.

NetworkClient
class NetworkClient

Client implementation backed by a real network connection.

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)

Stop listening and disconnect all clients.

createChannel
Channel createChannel(string name)

Creates a new channel. The default modes are "+nt".

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)

Listen on the given address. If port is 0, listen on a random available port. Returns the actual listening port.

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;

Character prefixes indicating channels.

channels
Channel[string] channels;

All channels on this server.

clients
HashSet!Client clients;

All clients

conn
TcpServer conn;

Listening socket.

creationTime
SysTime creationTime;

Announced in MOTD. Defaults to class construction time.

hostname
string hostname;

Hostname to announce. Defaults to the current machine's hostname.

log
Logger log;

Optional log.

maxUsers
ulong maxUsers;

Statistics

motd
string[] motd;

Additional MOTD lines to send.

network
string network;

If set, announce as the "NETWORK=".

nicknameMaxLength
uint nicknameMaxLength;

For the announced capabilities.

nicknameValidationPattern
string nicknameValidationPattern;

Require that nicknames match the given regular expression.

nicknames
Client[string] nicknames;

Registered clients only

operPassword
string operPassword;

If set, allow obtaining OPER status using the specified password.

password
string password;

If set, require this password to be specified using PASS.

serverVersion
string serverVersion;

Announced in MOTD.

staticChannels
bool staticChannels;

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

totalConnections
ulong totalConnections;

Statistics

Meta