Prevent an args-out-of-range error during login/out
[riece] / 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)))