app/irc: fix =irc nooping without preset networks #1121

=irc would do nothing if no networks were pre-set with set-irc-server!.
This commit is contained in:
Henrik Lissner 2019-02-11 15:20:21 -05:00
parent 01a166d5f0
commit fb8a378d72
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -23,8 +23,10 @@ workspace for it."
(if (+workspace-exists-p +irc--workspace-name)
(+workspace-switch +irc--workspace-name)
(and (+irc-setup-wconf inhibit-workspace)
(cl-loop for network in circe-network-options
collect (circe (car network))))))
(if circe-network-options
(cl-loop for network in circe-network-options
collect (circe (car network)))
(quiet! (call-interactively #'circe))))))
;;;###autoload
(defun +irc/connect (&optional inhibit-workspace)