Function: erc--parse-message-tags

erc--parse-message-tags is a byte-compiled function defined in erc-backend.el.gz.

Signature

(erc--parse-message-tags STRING)

Documentation

Parse STRING into an alist of (TAG . VALUE) conses.

Expect TAG to be a symbol and VALUE nil or a nonempty string. Don't split composite raw-input values containing commas; instead, leave them as a single string.

Implementations

(erc--parse-message-tags STRING) in `erc-backend.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-backend.el.gz
;; A benefit of this function being internal is not having to define a
;; separate method just to ensure an `erc-tags-format' value of
;; `legacy' always wins.  A downside is that module code must take
;; care to preserve that promise manually.

(cl-defgeneric erc--parse-message-tags (string)
  "Parse STRING into an alist of (TAG . VALUE) conses.
Expect TAG to be a symbol and VALUE nil or a nonempty string.
Don't split composite raw-input values containing commas;
instead, leave them as a single string."
  (when erc-tags-format
    (unless (or (eq erc-tags-format 'legacy)
                (get 'erc-parse-tags 'erc-v3-warned-p))
      (put 'erc-parse-tags 'erc-v3-warned-p t)
      (display-warning
       'erc
       (concat
        "Legacy ERC tags behavior is currently in effect, but other modules,"
        " including those bundled with ERC, may override this in future"
        " releases.  See `erc-tags-format' for more info.")))
    (erc--parse-tags string)))