emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 f9d87dd: Fix auth source lookups from erc with po


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] emacs-25 f9d87dd: Fix auth source lookups from erc with port numbers
Date: Sun, 27 Dec 2015 08:05:41 +0000

branch: emacs-25
commit f9d87dd8791d4e77929f21e4f73d92ef966722cc
Author: Krzysztof Jurewicz <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Fix auth source lookups from erc with port numbers
    
    * lisp/erc/erc.el (erc-open): `auth-source' wants strings, not port
    numbers (bug#20541).
    
    Copyright-paperwork-exempt: yes
---
 lisp/erc/erc.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 70e3734..04e99c7 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -2025,7 +2025,8 @@ Returns the buffer for the given server or channel."
                            (auth-source-search :host server
                                                :max 1
                                                :user nick
-                                               :port port
+                                               ;; secrets.el wouldn’t accept a 
number
+                                               :port (if (numberp port) 
(number-to-string port) port)
                                                :require '(:secret)))
                       :secret)))
                 (if (functionp secret)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]