[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 5917b50: Use a different port for TLS erc
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 5917b50: Use a different port for TLS erc |
Date: |
Sat, 26 Dec 2015 02:47:30 +0000 |
branch: master
commit 5917b504874faaa849f3976e0bfd75383745bd44
Author: Ćukasz Stelmach <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Use a different port for TLS erc
* lisp/erc/erc.el (erc-default-port-tls): New variable
(bug#19497).
* lisp/erc/erc.el (erc-tls): Use it.
Copyright-paperwork-exempt: yes
---
etc/NEWS | 3 +++
lisp/erc/erc.el | 7 ++++++-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index edd8147..20a1232 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -376,6 +376,9 @@ hide all messages of the specified type, where
`erc-network-hide-list'
and `erc-channel-hide-list' will only hide the specified message types
for the respective specified targets.
+*** New variable `erc-default-port-tls' used to connect to TLS IRC
+servers.
+
** Midnight-mode
*** `midnight-mode' is a proper minor mode.
*** clean-buffer-*-regexps can now specify buffers via predicate functions.
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 8e26db1..cd8c8a8 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -1471,6 +1471,10 @@ Defaults to the server buffer."
(defconst erc-default-port 6667
"IRC port to use if it cannot be detected otherwise.")
+(defconst erc-default-port-tls 6697
+ "IRC port to use for encrypted connections if it cannot be
+ detected otherwise.")
+
(defcustom erc-join-buffer 'buffer
"Determines how to display a newly created IRC buffer.
@@ -2194,7 +2198,8 @@ be invoked for the values of the other parameters."
(defun erc-tls (&rest r)
"Interactively select TLS connection parameters and run ERC.
Arguments are the same as for `erc'."
- (interactive (erc-select-read-args))
+ (interactive (let ((erc-default-port erc-default-port-tls))
+ (erc-select-read-args)))
(let ((erc-server-connect-function 'erc-open-tls-stream))
(apply #'erc r)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 5917b50: Use a different port for TLS erc,
Lars Ingebrigtsen <=