diff options
| author | Jakob L. Kreuze | 2019-12-24 13:28:26 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-12-24 13:28:26 -0500 |
| commit | 5208e6bac764c174f5f65ae165c3e5f3f9801027 (patch) | |
| tree | fce421ca18a4f196c1fc00112bbf2829bb391da0 | |
| parent | c00a3e547581f4a19f934a8486d83e07e23f13fb (diff) | |
Reconfigure ERC for playing with pounce instead of ZNC.
| -rw-r--r-- | jakob.org | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1710,12 +1710,16 @@ Functions for connecting to and authenticating with my IRC bouncer. (error "No secret for bouncer's auth entry.")) (funcall secretf)))) +(defvar *bouncer-port-alist* '(("freenode" . 6697) + ("tildetown" . 6671))) + (defun connect-bouncer (server) "Connect to `SERVER' on the bouncer and rename the buffer" - (let ((password (format "%s/%s:%s" "jakob" server (read-bouncer-password)))) - (erc-tls :server "jakob.space" :port 6697 :password password) - (erc-with-buffer ((get-buffer "jakob.space:6697") - (rename-buffer server))))) + (let* ((port (cdr (assoc server *bouncer-port-alist*))) + (buf (erc-tls :server "jakob.space" + :port port + :password (read-bouncer-password)))) + (erc-with-buffer (buf (rename-buffer server))))) #+END_SRC Functions for connecting to and authenticating with an instance of Bitlbee. |