tweak(irc): check circe-notifications is bound

As some people may disable this package it can cause them to not be able
to quit there irc session
This commit is contained in:
Jeetaditya Chatterjee 2023-09-05 22:08:59 +01:00 committed by Henrik Lissner
parent f4e74e17ad
commit a23e021032

View file

@ -55,7 +55,8 @@ workspace for it."
circe-server-killed-confirmation)
(when +irc--defer-timer
(cancel-timer +irc--defer-timer))
(disable-circe-notifications)
(when (fboundp #'disable-circe-notifications)
(disable-circe-notifications))
(mapc #'kill-buffer (doom-buffers-in-mode 'circe-mode (buffer-list) t))
(when (modulep! :ui workspaces)
(when (equal (+workspace-current-name) +irc--workspace-name)