* riece-commands.el (riece-command-join): Extract target
[riece] / lisp / riece-commands.el
index a1e2229..d8319f2 100644 (file)
@@ -425,7 +425,7 @@ the layout to the selected layout-name."
            "Channel/User: " riece-current-channels))
          key)
      (if (and current-prefix-arg
-             (riece-channel-p target))
+             (riece-channel-p (riece-identity-prefix target)))
         (setq key
               (riece-read-passwd (format "Key for %s: " target))))
      (list target key)))