* riece-misc.el (riece-concat-channel-topic): Don't append ":" if
authorueno <ueno>
Mon, 25 Aug 2003 09:22:56 +0000 (09:22 +0000)
committerueno <ueno>
Mon, 25 Aug 2003 09:22:56 +0000 (09:22 +0000)
topic is "".

lisp/ChangeLog
lisp/riece-misc.el

index b367f85..ef4f67b 100644 (file)
@@ -1,5 +1,8 @@
 2003-08-25  Daiki Ueno  <ueno@unixuser.org>
 
+       * riece-misc.el (riece-concat-channel-topic): Don't append ":" if
+       topic is "".
+
        * riece-300.el (riece-handle-322-message): Simplify message.
 
        * riece-commands.el (riece-command-change-layout): Call
index 2ba5785..60a02c0 100644 (file)
 (defun riece-concat-channel-topic (target string)
   (riece-with-server-buffer (riece-identity-server target)
     (let ((topic (riece-channel-get-topic (riece-identity-prefix target))))
-      (if topic
-         (concat string ": " topic)
-       string))))
+      (if (or (null topic)
+             (equal topic ""))
+         string
+       (concat string ": " topic)))))
 
 (defun riece-concat-channel-modes (target string)
   (riece-with-server-buffer (riece-identity-server target)