From cb46c01e3fe838d8dd820a7773c09c54abd24ae3 Mon Sep 17 00:00:00 2001 From: Jeetaditya Chatterjee Date: Tue, 5 Sep 2023 22:08:59 +0100 Subject: [PATCH] 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 --- modules/app/irc/autoload/irc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/app/irc/autoload/irc.el b/modules/app/irc/autoload/irc.el index d936b868e..16bca925b 100644 --- a/modules/app/irc/autoload/irc.el +++ b/modules/app/irc/autoload/irc.el @@ -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)