]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix inconsistency in value of rcirc-activity-string
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 2 Oct 2024 01:15:46 +0000 (09:15 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 6 Oct 2024 06:45:38 +0000 (08:45 +0200)
* lisp/net/rcirc.el (rcirc-update-activity-string): Consistently
don't display anything if there aren't any IRC connections.

(cherry picked from commit e6a37869c8dcbd17b01dab66c5588f087a33ddf0)

lisp/net/rcirc.el

index 0820191e9e73229d569b92f96f0fe11a415c4b63..35a14f7f93b5d032204c8dc7b604a1fe91d87c87 100644 (file)
@@ -2521,9 +2521,14 @@ activity.  Only run if the buffer is not visible and
                                       (rcirc-activity-string lopri)
                                       ")"))
                          (and hipri "]")))
+                ;; Consistently don't display anything if there aren't
+                ;; any IRC connections.  Otherwise, whether we display
+                ;; "[]" or not depends on whether or not this function
+                ;; happens to have been called in this session yet.
                 ((not (null (rcirc-process-list)))
                  "[]")
-                (t "[]")))
+                (t
+                 "")))
     (run-hooks 'rcirc-update-activity-string-hook)
     (force-mode-line-update t)))