aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/erc/erc.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 268d83dc449..6bb2e013c3b 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -5994,18 +5994,17 @@ See also `erc-downcase'."
5994 (and (erc--target-channel-p erc--target) 5994 (and (erc--target-channel-p erc--target)
5995 (erc-get-channel-user (erc-current-nick)) t)) 5995 (erc-get-channel-user (erc-current-nick)) t))
5996 5996
5997;; This function happens to return nil in channel buffers previously 5997;; While `erc-default-target' happens to return nil in channel buffers
5998;; parted or those from which a user had been kicked. While this 5998;; you've parted or from which you've been kicked, using it to detect
5999;; "works" for detecting whether a channel is currently subscribed to, 5999;; whether a channel is currently joined may become unreliable in the
6000;; new code should consider using 6000;; future. For now, new code should consider using
6001;; 6001;;
6002;; (erc-get-channel-user (erc-current-nick)) 6002;; (erc-get-channel-user (erc-current-nick))
6003;; 6003;;
6004;; instead. For retrieving a target regardless of subscription or 6004;; and expect a nicer option eventually. For retrieving a target
6005;; connection status, use replacements based on `erc--target'. 6005;; regardless of subscription or connection status, use replacements
6006;; (Coming soon.) 6006;; based on `erc--target' instead. See also `erc--default-target'.
6007;; 6007
6008;; TODO deprecate this
6009(defun erc-default-target () 6008(defun erc-default-target ()
6010 "Return the current default target (as a character string) or nil if none." 6009 "Return the current default target (as a character string) or nil if none."
6011 (let ((tgt (car erc-default-recipients))) 6010 (let ((tgt (car erc-default-recipients)))