diff options
| author | Ćukasz Stelmach | 2015-12-26 03:47:21 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2015-12-26 03:47:21 +0100 |
| commit | 5917b504874faaa849f3976e0bfd75383745bd44 (patch) | |
| tree | e265750350fde4c0999752b7e24b6e93fc46699a | |
| parent | b792ecea1715e080ad8e232d3d154b8a25d2edfb (diff) | |
| download | emacs-5917b504874faaa849f3976e0bfd75383745bd44.tar.gz emacs-5917b504874faaa849f3976e0bfd75383745bd44.zip | |
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
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | lisp/erc/erc.el | 7 |
2 files changed, 9 insertions, 1 deletions
| @@ -376,6 +376,9 @@ hide all messages of the specified type, where `erc-network-hide-list' | |||
| 376 | and `erc-channel-hide-list' will only hide the specified message types | 376 | and `erc-channel-hide-list' will only hide the specified message types |
| 377 | for the respective specified targets. | 377 | for the respective specified targets. |
| 378 | 378 | ||
| 379 | *** New variable `erc-default-port-tls' used to connect to TLS IRC | ||
| 380 | servers. | ||
| 381 | |||
| 379 | ** Midnight-mode | 382 | ** Midnight-mode |
| 380 | *** `midnight-mode' is a proper minor mode. | 383 | *** `midnight-mode' is a proper minor mode. |
| 381 | *** clean-buffer-*-regexps can now specify buffers via predicate functions. | 384 | *** clean-buffer-*-regexps can now specify buffers via predicate functions. |
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 8e26db1d9d3..cd8c8a817e1 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -1471,6 +1471,10 @@ Defaults to the server buffer." | |||
| 1471 | (defconst erc-default-port 6667 | 1471 | (defconst erc-default-port 6667 |
| 1472 | "IRC port to use if it cannot be detected otherwise.") | 1472 | "IRC port to use if it cannot be detected otherwise.") |
| 1473 | 1473 | ||
| 1474 | (defconst erc-default-port-tls 6697 | ||
| 1475 | "IRC port to use for encrypted connections if it cannot be | ||
| 1476 | detected otherwise.") | ||
| 1477 | |||
| 1474 | (defcustom erc-join-buffer 'buffer | 1478 | (defcustom erc-join-buffer 'buffer |
| 1475 | "Determines how to display a newly created IRC buffer. | 1479 | "Determines how to display a newly created IRC buffer. |
| 1476 | 1480 | ||
| @@ -2194,7 +2198,8 @@ be invoked for the values of the other parameters." | |||
| 2194 | (defun erc-tls (&rest r) | 2198 | (defun erc-tls (&rest r) |
| 2195 | "Interactively select TLS connection parameters and run ERC. | 2199 | "Interactively select TLS connection parameters and run ERC. |
| 2196 | Arguments are the same as for `erc'." | 2200 | Arguments are the same as for `erc'." |
| 2197 | (interactive (erc-select-read-args)) | 2201 | (interactive (let ((erc-default-port erc-default-port-tls)) |
| 2202 | (erc-select-read-args))) | ||
| 2198 | (let ((erc-server-connect-function 'erc-open-tls-stream)) | 2203 | (let ((erc-server-connect-function 'erc-open-tls-stream)) |
| 2199 | (apply #'erc r))) | 2204 | (apply #'erc r))) |
| 2200 | 2205 | ||