]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix auth source lookups from erc with port numbers
authorKrzysztof Jurewicz <krzysztof.jurewicz@gmail.com>
Sun, 27 Dec 2015 08:04:02 +0000 (09:04 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 27 Dec 2015 08:04:02 +0000 (09:04 +0100)
* lisp/erc/erc.el (erc-open): `auth-source' wants strings, not port
numbers (bug#20541).

Copyright-paperwork-exempt: yes

lisp/erc/erc.el

index 70e37348b6a9055982be18b92629de9cbc8f16e4..04e99c7b88422773fb02f06a3bf2df1f42c842c5 100644 (file)
@@ -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)