diff options
| author | Stefan Kangas | 2020-11-04 07:40:16 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2020-11-04 07:40:16 +0100 |
| commit | f7ea667b54380a7b7c60490cef30728b5f444ae1 (patch) | |
| tree | f405cb223b76129051a42ffff7c81c9077b83770 | |
| parent | 197a53f7b83dc95384fb98080de89e059cafadb5 (diff) | |
| download | emacs-f7ea667b54380a7b7c60490cef30728b5f444ae1.tar.gz emacs-f7ea667b54380a7b7c60490cef30728b5f444ae1.zip | |
Fix warnings in url-irc.el
* lisp/url/url-irc.el (zenirc-server-alist, zenirc-buffer-name):
Declare to fix warnings.
(url-irc-rcirc): Silence warning by adding missing password argument
to rcirc-connect.
| -rw-r--r-- | lisp/url/url-irc.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/url/url-irc.el b/lisp/url/url-irc.el index ece53c90291..3ff6e647478 100644 --- a/lisp/url/url-irc.el +++ b/lisp/url/url-irc.el | |||
| @@ -48,6 +48,8 @@ PASSWORD - What password to use" | |||
| 48 | ;; External. | 48 | ;; External. |
| 49 | (declare-function zenirc "ext:zenirc" (&optional prefix)) | 49 | (declare-function zenirc "ext:zenirc" (&optional prefix)) |
| 50 | (declare-function zenirc-send-line "ext:zenirc" ()) | 50 | (declare-function zenirc-send-line "ext:zenirc" ()) |
| 51 | (defvar zenirc-server-alist) | ||
| 52 | (defvar zenirc-buffer-name) | ||
| 51 | 53 | ||
| 52 | (defun url-irc-zenirc (host port channel user password) | 54 | (defun url-irc-zenirc (host port channel user password) |
| 53 | (let ((zenirc-buffer-name (if (and user host port) | 55 | (let ((zenirc-buffer-name (if (and user host port) |
| @@ -65,7 +67,7 @@ PASSWORD - What password to use" | |||
| 65 | 67 | ||
| 66 | (defun url-irc-rcirc (host port channel user password) | 68 | (defun url-irc-rcirc (host port channel user password) |
| 67 | (let ((chan (when channel (concat "#" channel)))) | 69 | (let ((chan (when channel (concat "#" channel)))) |
| 68 | (rcirc-connect host port user nil nil (when chan (list chan))) | 70 | (rcirc-connect host port user nil nil (when chan (list chan)) password) |
| 69 | (when chan | 71 | (when chan |
| 70 | (switch-to-buffer (concat chan "@" host))))) | 72 | (switch-to-buffer (concat chan "@" host))))) |
| 71 | 73 | ||