Files
EchoHub/docs/auriondocs/Code/src/EchoHub.Server.Irc/IrcOptions.cs.md
T
Hue 607217b314 docs: Update documentation for 145 files
Generated by AurionDocs
Job ID: 934f8c39-8082-4942-8d17-72ed8f5f8d50
Source commit: 40aea9a
2026-07-23 11:44:20 +02:00

1.5 KiB

IrcOptions

File: src/EchoHub.Server.Irc/IrcOptions.cs
Kind: class

public sealed class IrcOptions

IrcOptions is a lightweight configuration container for the EchoHub IRC integration. It groups together all IRC-related settings that govern whether the IRC feature is active, which ports to listen on for plain and TLS connections, optional TLS credentials, the IRC server identity, an optional Motd, and how attachment URLs are resolved for IRC clients. This class is typically populated from the Irc configuration section (as indicated by the SectionName constant) and consumed by the startup logic that initializes the IRC subsystem, allowing developers to tailor IRC behavior without touching runtime code.

Remarks

IrcOptions is a pure data carrier with defaults that reflect common IRC conventions: Port defaults to 6667, TlsPort to 6697, and ServerName to echohub. TLS-related fields (TlsEnabled, TlsPort, TlsCertPath, TlsCertPassword) indicate TLS support is optional and configured here; the runtime code uses these values to establish TLS-protected connections when enabled. The PublicBaseUrl property governs how attachment URLs are rendered for IRC clients: when set, it converts relative paths to absolute links using the provided base URL; when unset, attachments fall back to their relative paths. The Motd field exposes an optional IRC message of the day that can be surfaced to connected clients if the IRC subsystem is started.