Function: erc--unfun

erc--unfun is a byte-compiled function defined in erc.el.gz.

Signature

(erc--unfun MAYBE-FN)

Documentation

Return MAYBE-FN or whatever it returns.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; authentication

(defun erc--unfun (maybe-fn)
  "Return MAYBE-FN or whatever it returns."
  (let ((s (if (functionp maybe-fn) (funcall maybe-fn) maybe-fn)))
    (when (and erc-debug-irc-protocol
               erc--debug-irc-protocol-mask-secrets
               (stringp s))
      (put-text-property 0 (length s) 'erc-secret t s))
    s))