Fix inconsistency in value of rcirc-activity-string
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 2 Oct 2024 01:15:46 +0000 (09:15 +0800)
committerSean Whitton <spwhitton@spwhitton.name>
Wed, 2 Oct 2024 01:15:46 +0000 (09:15 +0800)
* lisp/net/rcirc.el (rcirc-update-activity-string): Consistently
don't display anything if there aren't any IRC connections.

lisp/net/rcirc.el

index 659035d4acb3d91ca29d255e0b8e8362e4de4248..7095da34ec08e36e0967fefeab48dd8e0ba0392f 100644 (file)
@@ -2537,9 +2537,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)))