Function: erc-send-distinguish-noncommands

erc-send-distinguish-noncommands is a byte-compiled function defined in erc-goodies.el.gz.

Signature

(erc-send-distinguish-noncommands STATE)

Documentation

If STR is an ERC non-command, set insertp in STATE to nil.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-goodies.el.gz
(defun erc-send-distinguish-noncommands (state)
  "If STR is an ERC non-command, set `insertp' in STATE to nil."
  (let* ((string (erc-input-string state))
         (command (erc-extract-command-from-line string))
         (cmd-fun (and command
                       (car command))))
    (when (and cmd-fun
               (not (string-match "\n.+$" string))
               (memq cmd-fun erc-noncommands-list))
      ;; Inhibit sending this string.
      (setf (erc-input-insertp state) nil))))