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 Yann Esposito (Yogsototh)
parent 33cc7e6278
commit cb46c01e3f
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

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)