Function: rcirc-send-message

rcirc-send-message is a byte-compiled function defined in rcirc.el.gz.

Signature

(rcirc-send-message PROCESS TARGET MESSAGE &optional NOTICEP SILENT)

Documentation

Send TARGET associated with PROCESS a privmsg with text MESSAGE.

If NOTICEP is non-nil, send a notice instead of privmsg. If SILENT is non-nil, do not print the message in any irc buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/net/rcirc.el.gz
(defun rcirc-send-message (process target message &optional noticep silent)
  "Send TARGET associated with PROCESS a privmsg with text MESSAGE.
If NOTICEP is non-nil, send a notice instead of privmsg.
If SILENT is non-nil, do not print the message in any irc buffer."
  (let ((response (if noticep "NOTICE" "PRIVMSG")))
    (rcirc-get-buffer-create process target)
    (dolist (msg (rcirc-split-message message))
      (unless silent
        (rcirc-print process (rcirc-nick process) response target msg))
      (rcirc-send-string process response target : msg))))