Table of Contents

Class MessageConventions

Namespace
EchoHub.Core.Constants
Assembly
EchoHub.Core.dll

Cross-protocol message conventions. Action messages (/me) use the IRC CTCP ACTION wire format 0x01 + "ACTION " + text + 0x01 as the stored content, so IRC clients interoperate natively (irssi's /me arrives in exactly this shape) and the TUI renders "* nick text". In end-to-end encrypted rooms the marker encrypts along with the text.

public static class MessageConventions
Inheritance
MessageConventions
Inherited Members

Fields

ActionPrefix

public const string ActionPrefix = "\u0001ACTION "

Field Value

string

ActionSuffix

public const string ActionSuffix = "\u0001"

Field Value

string

Methods

FormatAction(string)

public static string FormatAction(string text)

Parameters

text string

Returns

string

TryParseAction(string, out string?)

public static bool TryParseAction(string content, out string? actionText)

Parameters

content string
actionText string

Returns

bool