Prevent an args-out-of-range error during login/out for-daiki master
authorSteve Youngs <steve@sxemacs.org>
Thu, 11 Jun 2015 00:23:01 +0000 (10:23 +1000)
committerSteve Youngs <steve@sxemacs.org>
Thu, 11 Jun 2015 00:23:01 +0000 (10:23 +1000)
* lisp/riece-xfaceb.el (riece-xfaceb-update-user-list-buffer):
Only update if `riece-current-channel' is non-nil.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
lisp/riece-xfaceb.el

index cdee97e..55f3c52 100644 (file)
@@ -132,6 +132,7 @@ DATA is the image data from BBDB."
 (defun riece-xfaceb-update-user-list-buffer ()
   "Add X-Face or Colour Face images to channel users' buffer."
   (when (and (get 'riece-xfaceb 'riece-addon-enabled)
+            riece-current-channel
             (or (null riece-xfaceb-channels)
                 (member (riece-identity-prefix riece-current-channel)
                         riece-xfaceb-channels)))