sigildocs

(sigil irc tags)

(sigil irc tags) - typed accessors for common IRCv3 message tags

Convenience accessors for the well-known tags that show up across Tier 1 + Tier 2 capabilities. The raw tags alist is on every irc-message; these helpers wrap irc-message-tag with type-aware lookups and known constant names.

All accessors return:

  • the parsed value when the tag is present
  • #f when the tag is missing
  • the symbol 'flag when the tag is present but valueless (only echo-message realistically does this)

Exports

msg-timeprocedure

The server-time tag's value (RFC 3339 UTC string), or #f.

msg-msgidprocedure

The msgid tag's value, or #f.

msg-accountprocedure

The account tag's value (account name), or #f. May be the literal string "*" when account-tag is enabled but the sender has no logged-in account.

msg-batchprocedure

The batch tag's value (batch reftag), or #f.

msg-labelprocedure

The label tag's value (labeled-response correlation id), or #f.

msg-replyprocedure

The +draft/reply tag's value (reply-to msgid), or #f.

msg-typingprocedure

The +typing tag's value (active / paused / done), or #f.

with-timeprocedure

Add or replace the time tag.

with-msgidprocedure

Add or replace the msgid tag.

with-accountprocedure

Add or replace the account tag.

with-batchprocedure

Add or replace the batch tag.

with-labelprocedure

Add or replace the label tag.

TAG-TIMEvariable

(No description)

TAG-MSGIDvariable

(No description)

TAG-ACCOUNTvariable

(No description)

TAG-BATCHvariable

(No description)

TAG-LABELvariable

(No description)

TAG-REPLYvariable

(No description)

TAG-TYPINGvariable

(No description)