(require 'ring)
(require 'time-date)
+(defconst rcirc-id-string (concat "rcirc on GNU Emacs " emacs-version))
+
(defgroup rcirc nil
"Simple IRC client."
:version "22.1"
:version "24.1" ; changed default
:type 'string)
+(defcustom rcirc-default-part-reason rcirc-id-string
+ "The default reason to send when parting from a channel.
+Used when no reason is explicitly given."
+ :type 'string)
+
+(defcustom rcirc-default-quit-reason rcirc-id-string
+ "The default reason to send when quitting a server.
+Used when no reason is explicitly given."
+ :type 'string)
+
(defcustom rcirc-fill-flag t
"Non-nil means line-wrap messages printed in channel buffers."
:type 'boolean)
(defvar rcirc-timeout-seconds 600
"Kill connection after this many seconds if there is no activity.")
-(defconst rcirc-id-string (concat "rcirc on GNU Emacs " emacs-version))
\f
(defvar rcirc-startup-channels nil)
"Part CHANNEL.
CHANNEL should be a string of the form \"#CHANNEL-NAME REASON\".
If omitted, CHANNEL-NAME defaults to TARGET, and REASON defaults
-to `rcirc-id-string'."
+to `rcirc-default-part-reason'."
(interactive "sPart channel: ")
(let ((channel (if (> (length channel) 0) channel target))
- (msg rcirc-id-string))
+ (msg rcirc-default-part-reason))
(when (string-match "\\`\\([&#+!]\\S-+\\)?\\s-*\\(.+\\)?\\'" channel)
(when (match-beginning 2)
(setq msg (match-string 2 channel)))
(rcirc-send-string process (concat "QUIT :"
(if (not (zerop (length reason)))
reason
- rcirc-id-string))))
+ rcirc-default-quit-reason))))
(defun-rcirc-command reconnect (_)
"Reconnect to current server."