Function: erc-button--get-user-from-spkr-prop

erc-button--get-user-from-spkr-prop is a byte-compiled function defined in erc-button.el.gz.

Signature

(erc-button--get-user-from-spkr-prop _ _ _ COUNT)

Documentation

Attempt to obtain an erc-channel-user from current "msg props".

But only do so when COUNT is 1, meaning this is the first button candidate in the just-inserted message.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-button.el.gz
(defun erc-button--get-user-from-spkr-prop (_ _ _ count)
  "Attempt to obtain an `erc-channel-user' from current \"msg props\".
But only do so when COUNT is 1, meaning this is the first button
candidate in the just-inserted message."
  (and-let* (((= 1 count))
             (nick (erc--check-msg-prop 'erc--spkr)))
    (gethash nick erc-channel-members)))