app/irc: fix & improve feedback from =irc #1121
Hopefully prevents =irc from nooping.
This commit is contained in:
parent
ffcfde71d9
commit
5b48c21762
1 changed files with 11 additions and 7 deletions
|
@ -20,13 +20,17 @@
|
||||||
If INHIBIT-WORKSPACE (the universal argument) is non-nil, don't spawn a new
|
If INHIBIT-WORKSPACE (the universal argument) is non-nil, don't spawn a new
|
||||||
workspace for it."
|
workspace for it."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(if (+workspace-exists-p +irc--workspace-name)
|
(cond ((and (featurep! :feature workspaces)
|
||||||
(+workspace-switch +irc--workspace-name)
|
(+workspace-exists-p +irc--workspace-name))
|
||||||
(and (+irc-setup-wconf inhibit-workspace)
|
(+workspace-switch +irc--workspace-name))
|
||||||
(if circe-network-options
|
((not (+irc-setup-wconf inhibit-workspace))
|
||||||
(cl-loop for network in circe-network-options
|
(user-error "Couldn't start up a workspace for IRC")))
|
||||||
collect (circe (car network)))
|
(if (doom-buffers-in-mode 'circe-mode (buffer-list) t)
|
||||||
(quiet! (call-interactively #'circe))))))
|
(message "Circe buffers are already open")
|
||||||
|
(if circe-network-options
|
||||||
|
(cl-loop for network in circe-network-options
|
||||||
|
collect (circe (car network)))
|
||||||
|
(call-interactively #'circe))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +irc/connect (&optional inhibit-workspace)
|
(defun +irc/connect (&optional inhibit-workspace)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue