diff --git a/modules/app/irc/autoload/settings.el b/modules/app/irc/autoload/settings.el new file mode 100644 index 000000000..424a731cd --- /dev/null +++ b/modules/app/irc/autoload/settings.el @@ -0,0 +1,16 @@ +;;; app/irc/autoload/settings.el -*- lexical-binding: t; -*- + +;;;###autodef +(defun set-irc-server! (server letvars) + "Registers an irc SERVER for circe. + +See `circe-network-options' for details." + (after! circe + (push (cons server letvars) circe-network-options))) + +;; FIXME obsolete :irc +;;;###autoload +(def-setting! :irc (server letvars) + :obsolete set-irc-server! + `(after! circe + (push (cons ,server ,letvars) circe-network-options))) diff --git a/modules/app/irc/config.el b/modules/app/irc/config.el index a75e37bed..3adb8557f 100644 --- a/modules/app/irc/config.el +++ b/modules/app/irc/config.el @@ -36,11 +36,6 @@ See `circe-notifications-watch-strings'.") Useful for ZNC users who want to avoid the deluge of notifications during buffer playback.") -(def-setting! :irc (server letvars) - "Registers an irc server for circe." - `(after! circe - (push (cons ,server ,letvars) circe-network-options))) - (defvar +irc--defer-timer nil) (defsubst +irc--pad (left right)