2018-06-24 19:56:40 +02:00
|
|
|
;;; app/irc/autoload/settings.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;;;###autodef
|
2019-12-27 00:30:13 -05:00
|
|
|
(defun set-irc-server! (server plist)
|
2018-06-24 19:56:40 +02:00
|
|
|
"Registers an irc SERVER for circe.
|
|
|
|
|
2019-12-27 00:30:13 -05:00
|
|
|
SERVER can either be a name for the network (in which case you must specify a
|
|
|
|
:host), or it may be the hostname itself, in which case it will be used as the
|
|
|
|
:host.
|
|
|
|
|
2018-06-24 19:56:40 +02:00
|
|
|
See `circe-network-options' for details."
|
2021-07-15 22:11:01 -04:00
|
|
|
(declare (indent 1))
|
2018-06-24 19:56:40 +02:00
|
|
|
(after! circe
|
2019-12-27 00:30:13 -05:00
|
|
|
(unless (plist-member plist :host)
|
2022-06-14 20:25:39 +02:00
|
|
|
(cl-callf plist-put plist :host server))
|
2019-12-27 00:30:13 -05:00
|
|
|
(setf (alist-get server circe-network-options
|
|
|
|
nil nil #'equal)
|
|
|
|
plist)))
|